aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-23 12:48:07 +0100
committerGitHub <noreply@github.com>2020-11-23 12:48:07 +0100
commit1973669e868f4414b666d0fbd34f1a7a87322ae9 (patch)
tree230f785a265e7217f57b5241f174175a0e33947b
parent7827d95f6cfdf37f77f78059ffa3c3b7b1304d5f (diff)
parent07603890d2867907905ba411cee550390d868936 (diff)
Merge pull request #4271 from wiltaylor/IgnoreReferenceSwitch
Skip Reference Check on bundler
-rw-r--r--src/nix/bundle.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nix/bundle.cc b/src/nix/bundle.cc
index 2d0a0b6ea..eddd82f40 100644
--- a/src/nix/bundle.cc
+++ b/src/nix/bundle.cc
@@ -32,6 +32,7 @@ struct CmdBundle : InstallableCommand
.handler = {&outLink},
.completer = completePath
});
+
}
std::string description() override
@@ -116,10 +117,6 @@ struct CmdBundle : InstallableCommand
auto outPathS = store->printStorePath(outPath);
- auto info = store->queryPathInfo(outPath);
- if (!info->references.empty())
- throw Error("'%s' has references; a bundler must not leave any references", outPathS);
-
if (!outLink)
outLink = baseNameOf(app.program);