Skip to content

fix: include target names in build/ and .fingerprint/ cleanup#317

Merged
Swatinem merged 1 commit intoSwatinem:masterfrom
eitsupi:fix-cleanup-keep-targets
Mar 14, 2026
Merged

fix: include target names in build/ and .fingerprint/ cleanup#317
Swatinem merged 1 commit intoSwatinem:masterfrom
eitsupi:fix-cleanup-keep-targets

Conversation

@eitsupi
Copy link
Copy Markdown
Contributor

@eitsupi eitsupi commented Mar 14, 2026

Fix #235

When a package's lib name differs from its package name (e.g., jsonpath_lib_polars_vendor with lib name jsonpath_lib), the cleanup step was deleting the build/ and .fingerprint/ artifacts because keepPkg only contained the package name.
This caused cache misses and unnecessary rebuilds on subsequent CI runs.

Include target names (with hyphens replaced by underscores) in the keepPkg set, matching the existing behavior for the deps/ directory.

@Swatinem Swatinem merged commit bc18602 into Swatinem:master Mar 14, 2026
33 checks passed
@eitsupi eitsupi deleted the fix-cleanup-keep-targets branch March 14, 2026 15:35
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.

jsonpath_lib_polars_vendor cache is not restored properly

2 participants