You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 74b3306
Browse filesBrowse the repository at this point in the historyBrowse files
Fix unquoted purls in printed commands (#2182) (#2204)
* Start fix for unquoted purls in commands
Claims #2182. The fix follows in later commits.
Assisted-by: Claude Code:claude-fable-5-2
* Test the purl in printed rollback commands
A gem record's purl carries ?platform=ruby. The hosted hold note
prints it as the rollback target, where it matches no hosted pin and
its ? is a glob character. The other-scope rollback warning prints a
manifest key unquoted. Both tests fail until the next commit.
Refs #2182
Assisted-by: Claude Code:claude-fable-5-2
* Name a pin rollback can select in printed commands
The hosted gem hold note printed the patch record's purl as the
rollback target. A gem record's purl carries ?platform=ruby, which
selects no hosted pin, and its ? is a glob character: zsh refuses the
command, and bash with nullglob drops the argument and runs a bare
rollback, which unwinds every patch in the project.
The note and the mirror-pin warning now name the hosted pin by its
base purl, as rollback selects it. The other messages that print a
command with a purl (list, the withdrawn-patch warning, the prune
keep warnings, the other-scope rollback warning) pass it through
ui::shell_word, so a manifest key with qualifiers is quoted.
The gem e2e serves the record with its qualifier and runs the
printed command through a nullglob bash.
Fixes#2182
Assisted-by: Claude Code:claude-fable-5-2
* Name the release in the other-scope hint
The other-scope rollback warning keeps a record with its whole
variant group, so the command it prints names the base purl, which
selects that group, instead of one qualified key. The gem e2e now
reads the printed command from the scan's own output.
Refs #2182
Assisted-by: Claude Code:claude-fable-5-2
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments