build: update to golang 1.19

Update GH Actions and go.mod with golang 1.19

Signed-off-by: Jason Schroeder <jschroeder@salesforce.com>
This commit is contained in:
Jason Schroeder 2023-01-10 17:52:54 -08:00
parent b4680d03d6
commit 403dd50514
No known key found for this signature in database
GPG Key ID: F7142275DB869588
5 changed files with 7 additions and 7 deletions

View File

@ -74,7 +74,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@v3
with:
go-version: "1.18"
go-version: "1.19"
- name: Set up go env for Unix
if: runner.os != 'Windows'
run: |
@ -178,7 +178,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@v3
with:
go-version: "1.18"
go-version: "1.19"
- name: Build
run: |
[[ $GITHUB_REF =~ ^refs\/heads\/release/(.*)$ ]] && version=${BASH_REMATCH[1]} || version=0.0.0

View File

@ -46,7 +46,7 @@ jobs:
- name: Set up go
uses: actions/setup-go@v3
with:
go-version: "1.18"
go-version: "1.19"
- name: Set up go env
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV

View File

@ -65,8 +65,8 @@ install:
cp ./out/$(PACK_BIN) ${DESTDIR}${BINDIR}/
mod-tidy:
$(GOCMD) mod tidy -compat=1.18
cd tools && $(GOCMD) mod tidy -compat=1.18
$(GOCMD) mod tidy -compat=1.19
cd tools && $(GOCMD) mod tidy -compat=1.19
tidy: mod-tidy format

2
go.mod
View File

@ -124,7 +124,7 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
)
go 1.18
go 1.19
// Ensure compatibility with lifecycle/kaniko; match dependencies configured in:
// https://github.com/GoogleContainerTools/kaniko/blob/f9aaa9fca7bf4077778ed527c1a8a6e09e60c53c/go.mod (v1.9.1)

View File

@ -1,6 +1,6 @@
module github.com/buildpacks/pack/tools
go 1.18
go 1.19
require (
github.com/golang/mock v1.6.0