forked from lix-project/lix
Removed reference check from bundler command
This commit is contained in:
parent
c3bad73e27
commit
07603890d2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue