registry: close advertised Nix install command grammar #399

Open
nsaspy wants to merge 0 commits from rage/registry-install-command-grammar into main
Owner

After binding install.nix to the generated package target, trailing shell syntax was still accepted. Since these are copy-paste install commands, the registry should admit only the two generated forms it actually supports.

RAGE:

  • RED f10496bc: reject a valid target followed by arbitrary shell syntax
  • implementation 700ede43: allow only nix build <target> or nix run <target> -- install

No installer execution is added to the validator; this closes metadata grammar before users consume it.

After binding `install.nix` to the generated package target, trailing shell syntax was still accepted. Since these are copy-paste install commands, the registry should admit only the two generated forms it actually supports. RAGE: - RED `f10496bc`: reject a valid target followed by arbitrary shell syntax - implementation `700ede43`: allow only `nix build <target>` or `nix run <target> -- install` No installer execution is added to the validator; this closes metadata grammar before users consume it.
Some checks failed
CI / test (pull_request) Failing after 18s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/registry-install-command-grammar:rage/registry-install-command-grammar
git switch rage/registry-install-command-grammar

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff rage/registry-install-command-grammar
git switch rage/registry-install-command-grammar
git rebase main
git switch main
git merge --ff-only rage/registry-install-command-grammar
git switch rage/registry-install-command-grammar
git rebase main
git switch main
git merge --no-ff rage/registry-install-command-grammar
git switch main
git merge --squash rage/registry-install-command-grammar
git switch main
git merge --ff-only rage/registry-install-command-grammar
git switch main
git merge rage/registry-install-command-grammar
git push origin main
Sign in to join this conversation.
No description provided.