container_setup.bash: new script for initialize the project build

This commit is contained in:
Celestino Amoroso 2025-03-09 07:15:47 +01:00
parent ba100d86f2
commit 5d4a6ac058

12
container_setup.bash Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
GO_SRC="/go/src"
PKG_PATTERN="git\.portale-stac\.it/[^ ]*"
PKG_BRANCH=main
#cd "${GO_SRC}"
#git clone -b main https://git.portale-stac.it/go/dev-expr.git
#cd "dev-expr"
for pkg in $(grep -o "${PKG_PATTERN}" go.mod); do
go get "${pkg}@${PKG_BRANCH}"
done
go build