hercules-ci/gitignore.nix

opening directory .. permission denied

Opened this issue · 2 comments

while evaluating 'isStorePath' at /nix/store/2l1q3r2h5pb7n34c5v19cwk9bqnqlhdz-source/lib/strings.nix:602:17, called from /nix/store/2l1q3r2h5pb7n34c5v19cwk9bqnqlhdz-source/lib/types.nix:233:36:
while evaluating anonymous function at /nix/store/2l1q3r2h5pb7n34c5v19cwk9bqnqlhdz-source/lib/sources.nix:72:42, called from undefined position:
while evaluating anonymous function at /nix/store/d5f127nplwfanx3lj814sjyar21162dr-source/find-files.nix:25:13, called from /nix/store/2l1q3r2h5pb7n34c5v19cwk9bqnqlhdz-source/lib/sources.nix:72:48:
opening directory '/home/ielectric/dev/cachix/cachix-server/nix/postgres-data': Permission denied

Hey Domen, that doesn't look like fun.
Could you check that postgres-data is actually gitignored?
I've looked at the source location in the trace, but it's an odd coordinate. Are you using the latest master?
isStorePath makes me think you might be using it in a module option value. Perhaps you need to use the origSrc attribute: let src = gitignoreSource ...; ...; in src.origSrc

Could you check that postgres-data is actually gitignored?

Yes it is :)

I've looked at the source location in the trace, but it's an odd coordinate. Are you using the latest master?

I'll update :)

isStorePath makes me think you might be using it in a module option value. Perhaps you need to use the origSrc attribute: let src = gitignoreSource ...; ...; in src.origSrc

Is that something that should be documented, why does it need origSrc in that case?