Repository navigation
fix: just check uses wrong path (#187) - #189
Merged
Merged
Conversation
Refs: #187 Co-authored-by: Cursor <[email protected]>
Replace dirname(justfile_directory()) with source_directory()/scripts to correctly locate version-check.sh in both deployed workspace and devcontainer repo contexts. Matches justfile.gh pattern. Refs: #187 Co-authored-by: Cursor <[email protected]>
Refs: #187 Co-authored-by: Cursor <[email protected]>
1 task
Signed-off-by: gerchowl <[email protected]>
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.
Description
Fixes the
just checkrecipe path resolution bug. The recipe useddirname(justfile_directory())to locate.devcontainer/scripts/version-check.sh, which resolved one level above the project root in both deployed workspaces and the devcontainer repo. Replaced withsource_directory()/scripts(matching the pattern injustfile.gh) so the path resolves correctly in both contexts.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
justfile.base: Replacedirname(justfile_directory())withsource_directory()/scriptsin check recipeassets/workspace/.devcontainer/justfile.base: Synced viajust sync-workspacetests/test_integration.py: Add regression testtest_just_check_config_via_just_commandthat runsjust check configfrom workspaceCHANGELOG.md: Add entry under FixedChangelog Entry
Fixed
dirname(justfile_directory())withsource_directory()/scriptsto correctly locate version-check.sh in deployed workspaces and devcontainer repojust check configruns successfully from workspaceTesting
just test)Manual Testing Details
Integration tests pass (110 passed). Regression test
test_just_check_config_via_just_commandverifiesjust check configruns successfully from initialized workspace. BATS and hadolint precommit hooks failed due to environment (bats-support library, Docker daemon) — unrelated to this fix.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
TDD: regression test added first (RED), then fix (GREEN). The fix uses
source_directory()(available since just 1.27.0), which returns the directory of the current source file — correct for imported justfile.base in both workspace and repo contexts.Refs: #187