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

[chore] Use Go 1.22 for building #509

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ jobs:
path: ${{ steps.generate-metadata-file.outputs.filepath }}

generate-ldflags:
needs: get-product-version
needs:
- get-go-version
- get-product-version
runs-on: ubuntu-20.04
outputs:
ldflags: ${{ steps.generate-ldflags.outputs.ldflags }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- name: Generate ld flags
id: generate-ldflags
run: |
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21.5
1.22.2
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ IMPROVEMENTS:
BUG FIXES:
* cli: Fix non-interactive UI debug print output [[GH-508](https://github.com/hashicorp/nomad-pack/pull/508)]

DEPENDENCY CHANGES:
* build: Update Go version to 1.22 [[GH-509](https://github.com/hashicorp/nomad-pack/pull/509)]

## 0.1.1 (April 26,2024)

IMPROVEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# devbuild compiles the binary
# -----------------------------------
FROM golang:1.21 AS devbuild
FROM golang:1.22 AS devbuild

# Disable CGO to make sure we build static binaries
ENV CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hashicorp/nomad-pack

go 1.21
go 1.22

// This replace is required by Nomad or the dependency won't build correctly.
replace github.com/hashicorp/hcl => github.com/hashicorp/hcl v1.0.1-0.20201016140508-a07e7d50bbee
Expand Down
Loading