[GH-ISSUE #3653] Add Git in Caddy LXC if xcaddy installed #747

Closed
opened 2026-02-26 12:46:31 +03:00 by kerem · 2 comments
Owner

Originally created by @juronja on GitHub (Apr 4, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/3653

🌟 Briefly describe the feature

Preinstall git in Caddy LXC when installing xcaddy via script

📝 Detailed description

Just started to use Caddy and needed a module build with xcaddy. Specifically: xcaddy build --with github.com/mholt/caddy-ratelimit.

Throws an error because git is not installed:

go: github.com/caddyserver/rate-limit: git init --bare in /root/go/pkg/mod/cache/vcs/b681fc322e6828f53351c4d80ee1de4219e2a94599b0cfc2a1e670bc400bbcee: exec: "git": executable file not found in $PATH
2025/04/04 12:19:31 [FATAL] exit status 1

Can you add/preinstall git in Caddy LXC?

💡 Why is this useful?

I think if you offer to install xcaddy in the script it should instal git as a dependence too. Would be a more complete script.

Originally created by @juronja on GitHub (Apr 4, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/3653 ### 🌟 Briefly describe the feature Preinstall git in Caddy LXC when installing xcaddy via script ### 📝 Detailed description Just started to use Caddy and needed a module build with xcaddy. Specifically: `xcaddy build --with github.com/mholt/caddy-ratelimit`. Throws an error because git is not installed: ``` go: github.com/caddyserver/rate-limit: git init --bare in /root/go/pkg/mod/cache/vcs/b681fc322e6828f53351c4d80ee1de4219e2a94599b0cfc2a1e670bc400bbcee: exec: "git": executable file not found in $PATH 2025/04/04 12:19:31 [FATAL] exit status 1 ``` Can you add/preinstall git in Caddy LXC? ### 💡 Why is this useful? I think if you offer to install xcaddy in the script it should instal git as a dependence too. Would be a more complete script.
kerem 2026-02-26 12:46:31 +03:00
Author
Owner

@MickLesk commented on GitHub (Apr 4, 2025):

done for new installs:
https://github.com/community-scripts/ProxmoxVE/pull/3657

<!-- gh-comment-id:2778442309 --> @MickLesk commented on GitHub (Apr 4, 2025): done for new installs: https://github.com/community-scripts/ProxmoxVE/pull/3657
Author
Owner

@juronja commented on GitHub (Apr 4, 2025):

Appreciate the quick response. thank you!

<!-- gh-comment-id:2778634505 --> @juronja commented on GitHub (Apr 4, 2025): Appreciate the quick response. thank you!
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#747
No description provided.