1
0
mirror of synced 2026-03-13 23:26:55 +00:00

Merge pull request #1103 from fluxcd/build/fix-go-mod-update

Fix updating of `go.mod` entries for components
This commit is contained in:
Hidde Beydals
2021-03-16 16:31:17 +01:00
committed by GitHub

View File

@@ -30,7 +30,7 @@ jobs:
# bump kustomize
sed -i "s/\($1\/releases\/download\/\)v.*\(\/.*\)/\1${RELEASE_VERSION}\2/g" "manifests/bases/$1/kustomization.yaml"
if [[ ! -z $(go list -m all | grep "github.com/fluxcd/$1/api" | awk '{print $2}') ]]; then
if [[ ! -z $(grep "github.com/fluxcd/$1/api" go.mod | awk '{print $2}') ]]; then
# bump go mod
go mod edit -require="github.com/fluxcd/$1/api@${RELEASE_VERSION}"
fi