diff --git a/.gitignore b/.gitignore index 01dee62b..92bf4fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,10 @@ sing-box.exe *.dll *.so *.dylib - +.codex-go-Cache +.codex-gopath +.codex-go-Build +.codex-go-modcache # Environment .env .env.local diff --git a/install.sh b/install.sh index 036321a8..73b4565a 100644 --- a/install.sh +++ b/install.sh @@ -96,6 +96,14 @@ build_sing_box() { echo -e "${RED}Failed to download Go modules.${NC}" exit 1 fi + if ! go get github.com/libdns/dnspod@v0.0.3 github.com/libdns/tencentcloud@v1.4.3; then + echo -e "${RED}Failed to download ACME DNS provider modules.${NC}" + exit 1 + fi + if ! go mod tidy; then + echo -e "${RED}Failed to refresh Go module metadata.${NC}" + exit 1 + fi echo -e "${YELLOW}Starting compilation (this may take a few minutes)...${NC}" echo -e "${YELLOW}Note: Using -p 1 to save memory and avoid silent crashes.${NC}"