diff options
author | Peter Kolloch <info@eigenvalue.net> | 2020-05-06 11:21:12 +0200 |
---|---|---|
committer | Peter Kolloch <info@eigenvalue.net> | 2020-05-06 11:21:12 +0200 |
commit | 9be46859a90d5a0771e079615d324644a08efb41 (patch) | |
tree | 24fe24b64f4ff953f9c11169795d9c63d9fb1ad3 /src | |
parent | c9d0cf7e02d4b3af3c027d7d74d5caa3c8963d26 (diff) |
libstore/build.cc: more explicit about form of output
Be more explicit about why we expect a regular file as output
when outputHashMode=flat for a fixed output derivation.
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 572634765..e0c7324c7 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3678,7 +3678,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 |