Skip to content

Commit 6aedf02

Browse files
authored
[cli-test] Added /usr/bin to PATH so that haskell can to verify pkg downloads (#2433)
## Summary CICD jobs for [`cli-test`](https://github.com/jetify-com/devbox/actions/workflows/cli-tests.yaml?query=branch%3Amain) has been failing on Haskell example because the PATH (only) in test environment for macos doesn't have access to `/usr/bin/security` so it fails to verify TLS handshake on haskell package downloads. This small change ensures haskell has access to security binary. Broader fix would be to add `/usr/bin` to [`setupPATH`](https://github.com/jetify-com/devbox/blob/0fdfc6764a0a16fbbff504410053b13dee075e5f/testscripts/testrunner/setupenv.go#L39) function that sets up test environments before being run in CICD. But this PR keeps the scope to only the failing test. related to commercialhaskell/stack#4558 ## How was it tested? tested in this CI job: https://github.com/jetify-com/devbox/actions/runs/12147321911
1 parent 28ba55e commit 6aedf02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/development/haskell/devbox.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"zlib@latest",
88
"hpack@latest"
99
],
10+
"env": {
11+
"PATH": "$PATH:/usr/bin"
12+
},
1013
"shell": {
1114
"init_hook": null,
1215
"scripts": {
@@ -17,4 +20,4 @@
1720
]
1821
}
1922
}
20-
}
23+
}

0 commit comments

Comments
 (0)