The unpac monorepo manager self-hosting as a monorepo using unpac
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix tests on OpenBSD

- Add test dependency on bash.
- Allow www instead of http as the service name for port 80.

+10 -6
+1
dune-project
··· 48 48 (eio (= :version)) 49 49 (iomux (>= 0.2)) 50 50 (mdx (and (>= 2.4.1) :with-test)) 51 + (conf-bash :with-test) 51 52 (fmt (>= 0.8.9)))) 52 53 (package 53 54 (name eio_windows)
+1
eio_posix.opam
··· 13 13 "eio" {= version} 14 14 "iomux" {>= "0.2"} 15 15 "mdx" {>= "2.4.1" & with-test} 16 + "conf-bash" {with-test} 16 17 "fmt" {>= "0.8.9"} 17 18 "odoc" {with-doc} 18 19 ]
+3 -1
tests/network.md
··· 620 620 ```ocaml 621 621 # Eio_main.run @@ fun env -> 622 622 let sockaddr = `Tcp (Eio.Net.Ipaddr.V4.loopback, 80) in 623 - Eio.Net.getnameinfo env#net sockaddr;; 623 + let (host, service) = Eio.Net.getnameinfo env#net sockaddr in 624 + let service = if service = "www" then "http" else service in (* OpenBSD *) 625 + (host, service) 624 626 - : string * string = ("localhost", "http") 625 627 ``` 626 628
+5 -5
tests/process.md
··· 145 145 146 146 ```ocaml 147 147 # run @@ fun mgr env -> 148 - Process.run mgr ["bash"; "-c"; "exit 3"; ""; "foo"; "\"bar\""];; 148 + Process.run mgr ["sh"; "-c"; "exit 3"; ""; "foo"; "\"bar\""];; 149 149 Exception: 150 150 Eio.Io Process Child_error Exited (code 3), 151 - running command: bash -c "exit 3" "" foo "\"bar\"" 151 + running command: sh -c "exit 3" "" foo "\"bar\"" 152 152 ``` 153 153 154 154 Exit code success can be determined by is_success (Process.run): 155 155 156 156 ```ocaml 157 157 # run @@ fun mgr env -> 158 - Process.run ~is_success:(Int.equal 3) mgr ["bash"; "-c"; "exit 3"];; 158 + Process.run ~is_success:(Int.equal 3) mgr ["sh"; "-c"; "exit 3"];; 159 159 - : unit = () 160 160 161 161 # run @@ fun mgr env -> 162 - Process.run ~is_success:(Int.equal 3) mgr ["bash"; "-c"; "exit 0"];; 162 + Process.run ~is_success:(Int.equal 3) mgr ["sh"; "-c"; "exit 0"];; 163 163 Exception: 164 164 Eio.Io Process Child_error Exited (code 0), 165 - running command: bash -c "exit 0" 165 + running command: sh -c "exit 0" 166 166 ``` 167 167 168 168 Exit code success can be determined by is_success (Process.parse_out):