hercules-ci / gitignore.nix

Nix functions for filtering local git sources
The Unlicense
242 stars 19 forks source link

opening directory .. permission denied #39

Open domenkozar opened 4 years ago

domenkozar commented 4 years ago
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
roberth commented 4 years ago

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

domenkozar commented 4 years ago

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?