Skip to content

Commit

Permalink
update-go-version: Add logic to update go version of makefile
Browse files Browse the repository at this point in the history
This pr makes sure that makefile is also updated as per go version we
consume.
  • Loading branch information
praveenkumar committed May 7, 2024
1 parent 9bdaac7 commit a77001a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions update-go-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ echo "Updating golang version to $golang_base_version"

go mod edit -go ${golang_base_version}
go mod edit -go ${golang_base_version} tools/go.mod
sed -i "s,^GOVERSION = 1.[0-9]\+,GOVERSION = ${golang_base_version}," Makefile
sed -i "s,^\(FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-\)1.[0-9]\+,\1${golang_base_version}," images/*/Dockerfile
sed -i "s,^FROM registry.access.redhat.com/ubi8/go-toolset:[.0-9]\+,FROM registry.access.redhat.com/ubi8/go-toolset:${golang_base_version}," images/*/Dockerfile
for f in .github/workflows/*.yml; do
Expand Down

0 comments on commit a77001a

Please sign in to comment.