Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packages: use GO_MAJOR for selecting Go version #86

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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