mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
parseStorePath: Support leading period
This commit is contained in:
parent
9ddd0f2af8
commit
b13e6a76b4
2 changed files with 11 additions and 0 deletions
10
doc/manual/rl-next/leading-period.md
Normal file
10
doc/manual/rl-next/leading-period.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
synopsis: Store paths are allowed to start with `.`
|
||||||
|
issues: 912
|
||||||
|
prs: 9867 9091 9095 9120 9121 9122 9130 9219 9224
|
||||||
|
---
|
||||||
|
|
||||||
|
Leading periods were allowed by accident in Nix 2.4. The Nix team has considered this to be a bug, but this behavior has since been relied on by users, leading to unnecessary difficulties.
|
||||||
|
From now on, leading periods are officially, definitively supported.
|
||||||
|
|
||||||
|
Nix versions that denied leading periods are documented [in the issue](https://github.com/NixOS/nix/issues/912#issuecomment-1919583286).
|
|
@ -62,6 +62,7 @@ TEST_DO_PARSE(underscore, "foo_bar")
|
||||||
TEST_DO_PARSE(period, "foo.txt")
|
TEST_DO_PARSE(period, "foo.txt")
|
||||||
TEST_DO_PARSE(question_mark, "foo?why")
|
TEST_DO_PARSE(question_mark, "foo?why")
|
||||||
TEST_DO_PARSE(equals_sign, "foo=foo")
|
TEST_DO_PARSE(equals_sign, "foo=foo")
|
||||||
|
TEST_DO_PARSE(dotfile, ".gitignore")
|
||||||
|
|
||||||
#undef TEST_DO_PARSE
|
#undef TEST_DO_PARSE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue