Skip to content

Commit f0a450e

Browse files
author
Wilken Rivera
authored
Update circleci image to use new cimg namespace with Go1.17 (#93)
* Update circleci image to use new cimg namespace with Go1.17 * Update build tags for Go 1.17 ``` make fmt ``` * Fix path to Go working directory on linux
1 parent eb859fc commit f0a450e

13 files changed

Lines changed: 17 additions & 5 deletions

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ environment: &ENVIRONMENT
1111
executors:
1212
golang:
1313
docker:
14-
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
14+
- image: docker.mirror.hashicorp.services/cimg/go:1.17
1515
resource_class: medium+
1616
darwin:
1717
macos:
@@ -55,7 +55,7 @@ jobs:
5555
test-linux:
5656
executor: golang
5757
resource_class: large
58-
working_directory: /go/src/github.com/hashicorp/packer-plugin-sdk
58+
working_directory: ~/go/src/github.com/hashicorp/packer-plugin-sdk
5959
steps:
6060
- checkout
6161
- run: make vet
@@ -68,14 +68,14 @@ jobs:
6868
steps:
6969
- install-go-run-tests-unix:
7070
GOOS: darwin
71-
GOVERSION: "1.16"
71+
GOVERSION: "1.17"
7272
test-windows:
7373
executor:
7474
name: win/vs2019
7575
shell: bash.exe
7676
steps:
7777
- install-go-run-tests-windows:
78-
GOVERSION: "1.16"
78+
GOVERSION: "1.17"
7979
check-lint:
8080
executor: golang
8181
resource_class: xlarge
@@ -92,7 +92,7 @@ jobs:
9292
- run: make fmt-check
9393
check-generate:
9494
executor: golang
95-
working_directory: /go/src/github.com/hashicorp/packer-plugin-sdk
95+
working_directory: ~/go/src/github.com/hashicorp/packer-plugin-sdk
9696
steps:
9797
- checkout
9898
- run: make generate-check

filelock/filelock.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !solaris
12
// +build !solaris
23

34
package filelock

multistep/commonsteps/iso_config_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build !windows
12
// +build !windows
23

34
package commonsteps

packer/cache_config_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
12
// +build darwin freebsd linux netbsd openbsd solaris
23

34
package packer

packer/cache_config_unix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
12
// +build darwin freebsd linux netbsd openbsd solaris
23

34
package packer

packer/cache_config_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package packer

packer/cache_config_windows_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package packer

pathing/config_file_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
12
// +build darwin freebsd linux netbsd openbsd solaris
23

34
package pathing

pathing/config_file_unix_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
12
// +build darwin freebsd linux netbsd openbsd solaris
23

34
package pathing

pathing/config_file_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build windows
12
// +build windows
23

34
package pathing

0 commit comments

Comments
 (0)