Something went wrong. Try again.
An ATProto Powered Reputation Network
Something went wrong. Try again.
741 B · 26 lines
Nix
at master
123456789101112131415161718192021222324252627{ pkgs }:let source = (import ../hooks.nix { inherit pkgs; }).src; excluded = [ ".env" ".env.local" ".env.production" "nested/.env" ".direnv" ]; included = [ ".envrc" "README.md" "internal/config/config.go" ];inassert pkgs.lib.all (name: !source.filter "/fixture/${name}" "regular") excluded;assert pkgs.lib.all (name: source.filter "/fixture/${name}" "regular") included;assert !source.filter "/fixture/.env" "symlink";assert !source.filter "/fixture/.direnv" "directory";assert !builtins.pathExists "${source}/.env";assert !builtins.pathExists "${source}/.direnv";assert builtins.pathExists "${source}/README.md";pkgs.runCommand "provenance-source-filter-check" { } '' touch "$out"''