This commit is contained in:
2026-01-02 15:55:36 +00:00
parent c6edad4402
commit e6edf654b9
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
bd25b1e
b540e2e
+3 -1
View File
@@ -135,7 +135,9 @@ go_packages=(
for pkg_info in "${go_packages[@]}"; do
IFS=':' read -r pkg desc <<< "$pkg_info"
echo -n "$pkg ($desc)... "
if GOPROXY="$GOHOARDER_URL/go,direct" go get "$pkg" > /dev/null 2>&1; then
# Removed ",direct" fallback to enforce security scanning
# Packages will fail if blocked (same behavior as pip/npm/pnpm/yarn)
if GOPROXY="$GOHOARDER_URL/go" go get "$pkg" > /dev/null 2>&1; then
echo -e "${GREEN}${NC}"
else
echo -e "${RED}${NC}"