Skip to content

Commit 92d082a

Browse files
SecAI-Hubclaude
andcommitted
Fix shellcheck SC2043: replace single-item loop with inline build
Airlock is the only remaining monorepo Go service, so the loop is unnecessary and triggers shellcheck warning SC2043. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9f3b702 commit 92d082a

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

files/scripts/build-services.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ dnf install -y golang python3 python3-pip cmake gcc gcc-c++ 2>/dev/null || true
1515

1616
mkdir -p "$INSTALL_DIR" "$SRC_DIR"
1717

18-
# --- Go services (built from monorepo) ---
19-
for svc in airlock; do
20-
echo "Building: $svc"
21-
cp -r /tmp/services/${svc} "${SRC_DIR}/${svc}"
22-
cd "${SRC_DIR}/${svc}"
23-
CGO_ENABLED=0 go build -ldflags="-s -w" -o "${INSTALL_DIR}/${svc}" .
24-
echo " -> ${INSTALL_DIR}/${svc}"
25-
done
18+
# --- Airlock (built from monorepo) ---
19+
echo "Building: airlock"
20+
cp -r /tmp/services/airlock "${SRC_DIR}/airlock"
21+
cd "${SRC_DIR}/airlock"
22+
CGO_ENABLED=0 go build -ldflags="-s -w" -o "${INSTALL_DIR}/airlock" .
23+
echo " -> ${INSTALL_DIR}/airlock"
2624

2725
# --- ai-model-registry (standalone: security-first artifact registry) ---
2826
echo "Building: ai-model-registry"

0 commit comments

Comments
 (0)