Skip to content

Conversation

dalepgrant
Copy link
Contributor

@dalepgrant dalepgrant commented May 20, 2025

Rel: #1577

Motivation for this PR is in the related issue.

Considerations

  • used apt_clean_sources to follow existing naming convention for APT vars
  • placed apt_clean_sources with existing APT vars for logical grouping
  • set apt_clean_sources false by default so this is is opt-in and doesn't do unexpected things for people updating
  • placed task to clean sources as late as possible i.e. immediately before APT packages are updated and new sources found.

@swalkinshaw
Copy link
Member

Do you know of any downsides to making this enabled by default?

@dalepgrant
Copy link
Contributor Author

Ah it's an abundance of caution really.

If people have made changes to their server manually, without using Trellis, their source list will be different to one that Trellis would recreate for them from scratch. I figured it was less risk to make it opt-in.

dalepgrant and others added 2 commits May 21, 2025 12:49
Co-authored-by: Scott Walkinshaw <scott.walkinshaw@gmail.com>
@swalkinshaw
Copy link
Member

🚀

@swalkinshaw swalkinshaw merged commit 0218145 into roots:master May 21, 2025
2 checks passed
@dalepgrant dalepgrant deleted the feature/clean-apt-sources branch May 21, 2025 03:12
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