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);