#!/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