Skip to content

Commit

Permalink
Upgrade to go 1.21 (#184)
Browse files Browse the repository at this point in the history
* chore: upgrade to go 1.21

Signed-off-by: Michal Wasilewski <[email protected]>

* fix: mark the workspace as safe to prevent a go build error

Signed-off-by: Michal Wasilewski <[email protected]>

---------

Signed-off-by: Michal Wasilewski <[email protected]>
  • Loading branch information
mwasilew2 authored Sep 29, 2023
1 parent af7d32f commit f6739d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ jobs:
lint:
name: Lint the code
runs-on: ubuntu-latest
container: golang:1.19
container: golang:1.21

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Mark source directory as safe.
run: git config --global --add safe.directory $GITHUB_WORKSPACE

- name: Check formatting using gofmt
run: gofmt -s -l -d .

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Set up Go
uses: actions/setup-go@v4
with: { go-version: 1.19 }
with: { go-version: 1.21 }

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v4
with:
go-version: '1.19'
go-version: '1.21'

- name: Install dependencies
run: go mod download
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/spacelift-io/spacectl

go 1.19
go 1.21

require (
github.com/ProtonMail/gopenpgp/v2 v2.6.1
Expand Down

0 comments on commit f6739d3

Please sign in to comment.