Remove single file restriction for bundler
This commit is contained in:
parent
52407f83a1
commit
1a705637ce
1 changed files with 0 additions and 3 deletions
|
@ -107,10 +107,7 @@ struct CmdBundle : InstallableCommand
|
||||||
|
|
||||||
store->buildPaths({{drvPath}});
|
store->buildPaths({{drvPath}});
|
||||||
|
|
||||||
auto accessor = store->getFSAccessor();
|
|
||||||
auto outPathS = store->printStorePath(outPath);
|
auto outPathS = store->printStorePath(outPath);
|
||||||
if (accessor->stat(outPathS).type != FSAccessor::tRegular)
|
|
||||||
throw Error("'%s' is not a file; a bundler must only create a single file", outPathS);
|
|
||||||
|
|
||||||
auto info = store->queryPathInfo(outPath);
|
auto info = store->queryPathInfo(outPath);
|
||||||
if (!info->references.empty())
|
if (!info->references.empty())
|
||||||
|
|
Loading…
Reference in a new issue