Repository navigation
docs(openspec): plan #3415 resolve a cited bare name in the stage probe - #3437
Merged
Merged
Conversation
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.
Plans #3415
The stage probe checks each cited path literally at the staging commit root. A bare file name such as
stage_specs.pyfails there even when a file with that name sits undersrc/devops_cli/roadmap/, and the planner then dismisses a file that exists (PR #3336 did).The probe now reads the staged tree once, on the first missing cited path, lists the files of the same name that the commit holds, and names them as candidates. The line then says the path is no file at the root of the commit, not that it is no file of the commit. A path at the root keeps its present line. The candidates stay bounded by
SAME_NAME_MAX.The probe test covers a cited bare name with no root file, a root file with no same-name file, and six same-name files. The test that pins the probe command kinds adds
ls-tree.Change:
openspec/changes/3415-the-stage-probe-names-the-files/