Merge pull request #4271 from wiltaylor/IgnoreReferenceSwitch

Skip Reference Check on bundler
This commit is contained in:
Eelco Dolstra 2020-11-23 12:48:07 +01:00 committed by GitHub
commit 1973669e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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