Skip to content

Commit

Permalink
Merge pull request #86 from ginglis13/bump-go-122
Browse files Browse the repository at this point in the history
packages: use GO_MAJOR for selecting Go version
  • Loading branch information
ginglis13 authored Aug 14, 2024
2 parents b57db7c + 7c2664e commit 96800b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Conflicts: (%{_cross_os}image-feature(no-fips) or %{name}-bin)
%build
%set_cross_go_flags

export GO_VERSION="1.22.2"
export GO_MAJOR="1.22"

go build -ldflags="${GOLDFLAGS}" -o=ecr-credential-provider cmd/ecr-credential-provider/*.go
gofips build -ldflags="${GOLDFLAGS}" -o=fips/ecr-credential-provider cmd/ecr-credential-provider/*.go
Expand Down
2 changes: 1 addition & 1 deletion packages/host-ctr/host-ctr.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Conflicts: (%{_cross_os}image-feature(no-fips) or %{name}-bin)
cp -r %{_builddir}/sources/%{workspace_name}/* .

%build
export GO_VERSION="1.22.2"
export GO_MAJOR="1.22"

%set_cross_go_flags
go build -ldflags="${GOLDFLAGS}" -o host-ctr ./cmd/host-ctr
Expand Down
2 changes: 1 addition & 1 deletion packages/kubernetes-1.30/kubernetes-1.30.spec
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ cp third_party/forked/golang/PATENTS PATENTS.golang
%build
export FORCE_HOST_GO=1

export GO_VERSION="1.22.2"
export GO_MAJOR="1.22"

# Build codegen programs with the host toolchain.
make hack/update-codegen.sh
Expand Down

0 comments on commit 96800b8

Please sign in to comment.