Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Inhermeticity in cabal2bazel ./configure step #80

Open
aherrmann opened this issue Mar 5, 2019 · 0 comments
Open

Inhermeticity in cabal2bazel ./configure step #80

aherrmann opened this issue Mar 5, 2019 · 0 comments

Comments

@aherrmann
Copy link
Contributor

Hazel's cabal2bazel calls the ./configure script on packages that require this step. The is done using a
call to repository_ctx.execute. It is common for configure scripts to look for tools like gcc. Since this happens in a repository rule, it has access to the regular environment (e.g. $PATH) even if --experimental_strict_action_env is set, as a quick test showed. This is an inhermiticity. E.g. this step will fail if a user does not have a global gcc installed. It could also introduce cache misses with a remote cache due to differences in setup between machines. Furthermore, if the Bazel build later on configures a different cc toolchain, say using nixpkgs_cc_configure, this could potentially cause issues due to incompatibility between the toolchains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant