Repository navigation
Report an unchecked vlt copy in the direction of the run after rollback or a takeover - #2265
Draft
Mikola Lysenko (mikolalysenko) wants to merge 2 commits into
Draft
Mikola Lysenko (mikolalysenko) wants to merge 2 commits into
Mikola Lysenko (mikolalysenko) wants to merge 2 commits into
Conversation
The vlt heal runs after a hosted rewrite, after rollback or remove restore the registry pins, and after a hosted to vendored takeover. A copy it could not check (node_modules is a link, or vlt's hidden lock is missing or unreadable) was reported with one text for all three: "vlt-lock.json pins Socket-patched packages ... run vlt ci to be sure the patched packages are installed". After a rollback that is false twice over: the run has just taken the pin out, and the copy that may still be installed is the patched one. The rollback now says the registry pins were restored and that vlt ci makes sure the registry packages are installed. The takeover says the packages were vendored. The hosted rewrite's text is unchanged, as are the warning code, the command to run and the exit codes. Fixes #2254. Assisted-by: Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LLM Description written by Claude Code
Fixes #2254.
Problem
After
rollbackorremoverestores the registry pins of a vlt project, a copy the heal could not check (node_modulesis a link, ornode_modules/.vlt-lock.jsonis missing or unreadable) is reported with the hosted flow's text: "vlt-lock.json pins Socket-patched packages … runvlt cito be sure the patched packages are installed". The run has just taken the pin out, and the copy that may still be installed is the patched one. A hosted → vendored takeover prints the same text.Evidence on
main(cfc870f)Three tests fail on
main's production code. Through the built binary (cargo test -p socket-patch-cli --test rollback -- vlt_hosted_rollback):Plan
Give the unchecked arm of
rollback_detailandtakeover_detailthe direction every other arm of those functions has. One production file (commands/vlt_heal.rs); the warning code, the exit codes and the JSON shape stay.Generated by Claude Code