From e749a97621d445de5e0dec89ab840dd61839d872 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 17 Feb 2025 10:05:15 +0100 Subject: just-lock: Improve handling of pragmas in 'repos' import description In particular, any transitive 'file'-type repository will inherit any given '{to_git: true}' pragma in the import description objects. Note that this technically can only happen for transitive 'file' repositories imported from a 'file' source, so in all other cases such a pragma would not have any effect. Document change and extend the import from 'file' source test to check this feature. --- test/end-to-end/just-lock/file-imports.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/end-to-end') diff --git a/test/end-to-end/just-lock/file-imports.sh b/test/end-to-end/just-lock/file-imports.sh index 71dc5edc..e61ac834 100644 --- a/test/end-to-end/just-lock/file-imports.sh +++ b/test/end-to-end/just-lock/file-imports.sh @@ -77,7 +77,7 @@ cat > repos.in.json <&1 cat repos.json echo +# Check pragmas for repo "foo" are correctly set +[ $(jq -r '.repositories.foo.repository.pragma.special' repos.json) = "resolve-completely" ] +[ $(jq -r '.repositories.foo.repository.pragma.to_git' repos.json) = true ] +# Check the symlink gets resolved as expected "${JUST_MR}" -L '["env", "PATH='"${PATH}"'"]' --norc --just "${JUST}" --local-build-root "${LBR}" install -o "${OUT}" 2>&1 echo cat "${OUT}/out.txt" -- cgit v1.2.3