[PR #2880] [MERGED] Explicitly drop apt-get clean and use dist-clean #2913

Closed
opened 2025-12-29 04:19:38 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2880
Author: @tianon
Created: 11/12/2025
Status: Merged
Merged: 11/13/2025
Merged by: @nblock

Base: mainHead: apt-get-dist-clean


📝 Commits (1)

  • 173c793 Explicitly drop apt-get clean and use dist-clean

📊 Changes

1 file changed (+1 additions, -2 deletions)

View changed files

📝 Dockerfile.integration (+1 -2)

📄 Description

The former is a no-op in the base images (45491f2c5c/scripts/debuerreotype-minimizing-config (L87-L109)), and apt-get dist-clean is a safer/better version of the rm -rf /var/lib/apt/lists/* that keeps the cryptographic bits that help prevent downgrade attacks.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
    • (hopefully this one is simple enough that we don't need to, but happy to discuss more if necessary!)
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Refs https://github.com/juanfont/headscale/pull/2827/files#r2516919325


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2880 **Author:** [@tianon](https://github.com/tianon) **Created:** 11/12/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@nblock](https://github.com/nblock) **Base:** `main` ← **Head:** `apt-get-dist-clean` --- ### 📝 Commits (1) - [`173c793`](https://github.com/juanfont/headscale/commit/173c7937df0703320572935d6abbedc123ce2e4a) Explicitly drop `apt-get clean` and use `dist-clean` ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile.integration` (+1 -2) </details> ### 📄 Description The former is a no-op in the base images (https://github.com/debuerreotype/debuerreotype/blob/45491f2c5c8ac76630e1e2d27503528ca29e1f6f/scripts/debuerreotype-minimizing-config#L87-L109), and `apt-get dist-clean` is a safer/better version of the `rm -rf /var/lib/apt/lists/*` that keeps the cryptographic bits that help prevent downgrade attacks. <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [ ] raised a GitHub issue or discussed it on the projects chat beforehand - (hopefully this one is simple enough that we don't need to, but happy to discuss more if necessary!) - [ ] ~~added unit tests~~ - [ ] ~~added integration tests~~ - [ ] ~~updated documentation if needed~~ - [ ] ~~updated CHANGELOG.md~~ <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> Refs https://github.com/juanfont/headscale/pull/2827/files#r2516919325 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:19:38 +01:00
adam closed this issue 2025-12-29 04:19:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2913