Remove single file restriction for bundler

This commit is contained in:
Matthew Bauer 2020-07-30 15:05:51 -05:00
parent 52407f83a1
commit 1a705637ce

View file

@ -107,10 +107,7 @@ struct CmdBundle : InstallableCommand
store->buildPaths({{drvPath}});
auto accessor = store->getFSAccessor();
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);
if (!info->references.empty())