Skip to content

cascache: Fixes for checkout() - #2204

Merged
juergbi merged 3 commits into
masterfrom
jbilleter/checkout
Oct 16, 2026
Merged

juergbi merged 3 commits into
masterfrom
jbilleter/checkout

Conversation

@juergbi

@juergbi juergbi commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

bst artifact checkout --force allows checkout to a non-empty directory. Make sure that this works as expected with symlinks.

`bst artifact checkout` verifies that the destination is empty. However,
`bst artifact checkout --force` allows checkout to a non-empty
directory. Let's not blindly follow pre-existing directory symlinks even
in that case.
`bst artifact checkout --force` intentionally replaces existing files.
The same should apply to symlinks. Without `--force`, it should not be
possible to hit that code path.
@juergbi
juergbi merged commit 3f4c304 into master Oct 16, 2026
19 checks passed
@juergbi
juergbi deleted the jbilleter/checkout branch October 16, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants