Skip to content

Commit b37b9a6

Browse files
authored
Merge pull request #563 from sleroq/fix-use-substitutes
fix: prevent --use-substitutes from being passed to nix build
2 parents 108a0cf + 386f454 commit b37b9a6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ functionality, under the "Removed" section.
110110
- Empty password validation prevents invalid credential caching.
111111
- Direnv caches in [alternative locations][direnv-alternative-caches] (e.g.,
112112
`$XDG_CACHE_DIR/direnv/layouts`) will now be detected during `nh clean`.
113+
- Fixed `--use-substitutes` being incorrectly passed to `nix build`, causing
114+
"unrecognised flag" errors.
113115

114116
[direnv-alternative-caches]: https://github.com/direnv/direnv/wiki/Customizing-cache-location
115117

src/interface.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,6 @@ impl NixBuildPassthroughArgs {
911911
if self.no_build_output {
912912
args.push("--no-build-output".into());
913913
}
914-
if self.use_substitutes {
915-
args.push("--use-substitutes".into());
916-
}
917914
if self.json {
918915
args.push("--json".into());
919916
}

0 commit comments

Comments
 (0)