Merge pull request #3568 from kolloch/outputHashModeError

libstore/build.cc: more explicit error about form of output
This commit is contained in:
Domen Kožar 2020-05-11 18:14:32 +02:00 committed by GitHub
commit 5bdb67c843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3681,7 +3681,8 @@ void DerivationGoal::registerOutputs()
/* The output path should be a regular file without execute permission. */
if (!S_ISREG(st.st_mode) || (st.st_mode & S_IXUSR) != 0)
throw BuildError(
format("output path '%1%' should be a non-executable regular file") % path);
format("output path '%1%' should be a non-executable regular file "
"since recursive hashing is not enabled (outputHashMode=flat)") % path);
}
/* Check the hash. In hash mode, move the path produced by