Add Git in Caddy LXC if xcaddy installed #747

Closed
opened 2026-02-04 21:12:42 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @juronja on GitHub (Apr 4, 2025).

🌟 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). ### 🌟 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.
OVERLORD added the enhancement label 2026-02-04 21:12:42 +03:00
Author
Owner

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

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

@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!

@juronja commented on GitHub (Apr 4, 2025): Appreciate the quick response. thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#747