修复ACME错误
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -5,7 +5,10 @@ sing-box.exe
|
|||||||
*.dll
|
*.dll
|
||||||
*.so
|
*.so
|
||||||
*.dylib
|
*.dylib
|
||||||
|
.codex-go-Cache
|
||||||
|
.codex-gopath
|
||||||
|
.codex-go-Build
|
||||||
|
.codex-go-modcache
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
|
|||||||
@@ -96,6 +96,14 @@ build_sing_box() {
|
|||||||
echo -e "${RED}Failed to download Go modules.${NC}"
|
echo -e "${RED}Failed to download Go modules.${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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}Starting compilation (this may take a few minutes)...${NC}"
|
||||||
echo -e "${YELLOW}Note: Using -p 1 to save memory and avoid silent crashes.${NC}"
|
echo -e "${YELLOW}Note: Using -p 1 to save memory and avoid silent crashes.${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user