Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use allowSubstitutes=false #1389

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Don't use allowSubstitutes=false #1389

merged 1 commit into from
Mar 3, 2022

Conversation

michaelpj
Copy link
Collaborator

runCommandLocal sets both preferLocalBuild=true and
allowSubstitutes=false. There's an
argument that the latter is a
misfeature. There's really no reason not to download something from a
substitutor if it's actually been built already.

We can get the effect that we want easily enough by just setting
preferLocalBuild=true alone.

`runCommandLocal` sets both `preferLocalBuild=true` and
`allowSubstitutes=false`. There's an
[argument](NixOS/nix#4442) that the latter is a
misfeature. There's really no reason not to download something from a
substitutor if it's actually been built already.

We can get the effect that we want easily enough by just setting
`preferLocalBuild=true` alone.
@michaelpj
Copy link
Collaborator Author

I tried this while on the track of what ultimately turned out to be #1387, but I think this is still suspicious, and better avoided.

@hamishmack
Copy link
Collaborator

bors try

iohk-bors bot added a commit that referenced this pull request Mar 2, 2022
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 3, 2022

@hamishmack hamishmack merged commit 315b6d3 into master Mar 3, 2022
@iohk-bors iohk-bors bot deleted the mpj/fix-local-build branch March 3, 2022 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants