Skip to content

Commit

Permalink
Rename nul.nar because nul is a special name in Windows
Browse files Browse the repository at this point in the history
For example, we can't even clone the repository on Windows!

    error: invalid path 'tests/functional/nul.nar'
    fatal: unable to checkout working tree
  • Loading branch information
puffnfresh committed Nov 3, 2024
1 parent 55fe4ee commit 190d0d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/nars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ rm -f "$TEST_ROOT/unicode-*"

# Unpacking a NAR with a NUL character in a file name should fail.
rm -rf "$TEST_ROOT/out"
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul.nar | grepQuiet "NAR contains invalid file name 'f"
expectStderr 1 nix-store --restore "$TEST_ROOT/out" < nul-character.nar | grepQuiet "NAR contains invalid file name 'f"

# Likewise for a '.' filename.
rm -rf "$TEST_ROOT/out"
Expand Down
File renamed without changes.

0 comments on commit 190d0d6

Please sign in to comment.