mirror of https://github.com/buildpacks/pack.git
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:
parent
b4680d03d6
commit
403dd50514
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -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
2
go.mod
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module github.com/buildpacks/pack/tools
|
||||
|
||||
go 1.18
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/golang/mock v1.6.0
|
||||
|
|
|
|||
Loading…
Reference in New Issue