Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaults-helper: rerun on changes to any file in defaults.d #71

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

cbgbt
Copy link
Contributor

@cbgbt cbgbt commented Dec 31, 2024

Issue #, if available:
Closes bottlerocket-os/twoliter#422

Description of changes:
Per bottlerocket-os/twoliter#422, adding a symlink to a defaults.d directory does not result in a rebuild of defaults generated by bottlerocket-defaults-helper.

This is because we were emitting cargo::rerun-if-changed directives for each file discovered in the defaults directory, but not scanning the directory itself for new files.

This changes bottlerocket-defautls-helper to emit a single rerun-if-changed directive for the entire defaults.d directory, which will result in cargo scanning the directory for changes when detecting rebuilds.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@cbgbt cbgbt requested a review from vigh-m January 3, 2025 21:01
@cbgbt cbgbt force-pushed the rerun-on-defaults-changes branch from 0d420c9 to 6d163fc Compare January 3, 2025 21:15
@cbgbt
Copy link
Contributor Author

cbgbt commented Jan 3, 2025

^ Fixes commit message

@cbgbt cbgbt merged commit 0cf8573 into bottlerocket-os:develop Jan 3, 2025
2 checks passed
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.

Creating symlinks in sources/ does not trigger rebuild
3 participants