[PR #10107] [MERGED] Fix cleanup issues in npm cache and rustup toolchain #8520

Closed
opened 2026-02-26 16:33:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/10107
Author: @MickLesk
Created: 12/18/2025
Status: Merged
Merged: 12/18/2025
Merged by: @CrazyWolf13

Base: mainHead: fix-cleanup-npm-rustup-issues


📝 Commits (1)

  • e52d768 Fix cleanup issues in npm cache and rustup toolchain

📊 Changes

3 files changed (+6 additions, -3 deletions)

View changed files

📝 ct/linkwarden.sh (+1 -1)
📝 install/linkwarden-install.sh (+1 -1)
📝 misc/core.func (+4 -1)

📄 Description

✍️ Description

Issue 1 - BentoPDF (npm cache clean failure):

  • npm cache clean --force can fail with ENOTEMPTY on corrupted caches
  • Added npm cache verify before clean to detect/fix corruption
  • Explicitly redirect stderr to suppress error noise

Issue 2 - Linkwarden (rustup toolchain removed too early):

  • Script deleted ~/.rustup during build cleanup
  • Later cleanup_lxc() tried to run 'cargo clean' without toolchain
  • Now only remove cargo cache dirs, preserve ~/.rustup toolchain

Fixes #10092 #10093

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 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/community-scripts/ProxmoxVE/pull/10107 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 12/18/2025 **Status:** ✅ Merged **Merged:** 12/18/2025 **Merged by:** [@CrazyWolf13](https://github.com/CrazyWolf13) **Base:** `main` ← **Head:** `fix-cleanup-npm-rustup-issues` --- ### 📝 Commits (1) - [`e52d768`](https://github.com/community-scripts/ProxmoxVE/commit/e52d7689596fd29ed6706e33c14a9d9b4a05e248) Fix cleanup issues in npm cache and rustup toolchain ### 📊 Changes **3 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `ct/linkwarden.sh` (+1 -1) 📝 `install/linkwarden-install.sh` (+1 -1) 📝 `misc/core.func` (+4 -1) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description Issue 1 - BentoPDF (npm cache clean failure): - npm cache clean --force can fail with ENOTEMPTY on corrupted caches - Added npm cache verify before clean to detect/fix corruption - Explicitly redirect stderr to suppress error noise Issue 2 - Linkwarden (rustup toolchain removed too early): - Script deleted ~/.rustup during build cleanup - Later cleanup_lxc() tried to run 'cargo clean' without toolchain - Now only remove cargo cache dirs, preserve ~/.rustup toolchain ## 🔗 Related Issue Fixes #10092 #10093 ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [x] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [ ] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 16:33:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#8520
No description provided.