修复无法编译的错误

This commit is contained in:
CN-JS-HuiBai
2026-04-15 19:01:00 +08:00
parent a2a3ba12b3
commit 1fb5f5fb12

View File

@@ -91,6 +91,12 @@ build_sing_box() {
# Reduced tags for safer build on smaller servers
TAGS="with_quic,with_utls,with_clash_api,with_gvisor,with_acme"
echo -e "${YELLOW}Downloading Go modules and refreshing go.sum entries...${NC}"
if ! go mod download; then
echo -e "${RED}Failed to download Go modules.${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}"