Skip to content

[Backport 2.15-maintenance] StorePath: reject names starting with '.', Fix typo in error message of too long store path#9130

Merged
roberth merged 2 commits into
NixOS:2.15-maintenancefrom
hercules-ci:backport-9095-to-2.15-maintenance
Oct 23, 2023
Merged

[Backport 2.15-maintenance] StorePath: reject names starting with '.', Fix typo in error message of too long store path#9130
roberth merged 2 commits into
NixOS:2.15-maintenancefrom
hercules-ci:backport-9095-to-2.15-maintenance

Conversation

@roberth

@roberth roberth commented Oct 9, 2023

Copy link
Copy Markdown
Member

oxalica and others added 2 commits October 23, 2023 18:41
This has been the behaviour before Nix 2.4. It was dropped in a rewrite
in 759947b, allowing the creation of
store paths that aren't considered valid by older Nix versions or other
Nix tooling.

Nix 2.4 didn't ship in NixOS until 22.05, and stdenv.mkDerivation in
nixpkgs drops leading periods since April 2022, so it's unlikely anyone
is relying on the current lax behaviour.

Closes NixOS#9091.

Change-Id: I4a57bd9899e1b0dba56870ae5a1b680918a18ce9
@roberth roberth force-pushed the backport-9095-to-2.15-maintenance branch from a2215e7 to a06801d Compare October 23, 2023 16:41
@roberth roberth merged commit c223618 into NixOS:2.15-maintenance Oct 23, 2023
@github-actions

Copy link
Copy Markdown

Backport failed for 2.13-maintenance, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git fetch origin 2.13-maintenance
git worktree add -d .worktree/backport-9130-to-2.13-maintenance origin/2.13-maintenance
cd .worktree/backport-9130-to-2.13-maintenance
git checkout -b backport-9130-to-2.13-maintenance
ancref=$(git merge-base 765d19be6a29cfb2aacbcfe29831b9ee618b756c a06801de17fab47b68300c6736cd031fb0d25b6e)
git cherry-pick -x $ancref..a06801de17fab47b68300c6736cd031fb0d25b6e

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants