diff options
author | Wil Taylor <cert@wiltaylor.dev> | 2020-11-23 21:19:40 +1000 |
---|---|---|
committer | Wil Taylor <cert@wiltaylor.dev> | 2020-11-23 21:19:40 +1000 |
commit | 07603890d2867907905ba411cee550390d868936 (patch) | |
tree | 0359957de94355f612ba4b76d86ff40694e23700 /src/nix/bundle.cc | |
parent | c3bad73e27a5bda3f8f8c768cec818c52b0f95e3 (diff) |
Removed reference check from bundler command
Diffstat (limited to 'src/nix/bundle.cc')
-rw-r--r-- | src/nix/bundle.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nix/bundle.cc b/src/nix/bundle.cc index c59018726..eddd82f40 100644 --- a/src/nix/bundle.cc +++ b/src/nix/bundle.cc @@ -11,7 +11,6 @@ struct CmdBundle : InstallableCommand { std::string bundler = "github:matthewbauer/nix-bundle"; std::optional<Path> outLink; - bool skipReferenceCheck = false; CmdBundle() { @@ -34,11 +33,6 @@ struct CmdBundle : InstallableCommand .completer = completePath }); - addFlag({ - .longName = "skip-refcheck", - .description = "Skip checking of references in bundle.", - .handler = {&skipReferenceCheck, true}, - }); } std::string description() override @@ -123,10 +117,6 @@ struct CmdBundle : InstallableCommand auto outPathS = store->printStorePath(outPath); - auto info = store->queryPathInfo(outPath); - if (!info->references.empty() && !skipReferenceCheck) - throw Error("'%s' has references; a bundler must not leave any references", outPathS); - if (!outLink) outLink = baseNameOf(app.program); |