Skip to content

Commit

Permalink
Update circleci image to use new cimg namespace with Go1.17 (#93)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nywilken committed Dec 15, 2021
1 parent eb859fc commit f0a450e
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .circleci/config.yml
Expand Up @@ -11,7 +11,7 @@ environment: &ENVIRONMENT
executors:
golang:
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
- image: docker.mirror.hashicorp.services/cimg/go:1.17
resource_class: medium+
darwin:
macos:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
test-linux:
executor: golang
resource_class: large
working_directory: /go/src/github.com/hashicorp/packer-plugin-sdk
working_directory: ~/go/src/github.com/hashicorp/packer-plugin-sdk
steps:
- checkout
- run: make vet
Expand All @@ -68,14 +68,14 @@ jobs:
steps:
- install-go-run-tests-unix:
GOOS: darwin
GOVERSION: "1.16"
GOVERSION: "1.17"
test-windows:
executor:
name: win/vs2019
shell: bash.exe
steps:
- install-go-run-tests-windows:
GOVERSION: "1.16"
GOVERSION: "1.17"
check-lint:
executor: golang
resource_class: xlarge
Expand All @@ -92,7 +92,7 @@ jobs:
- run: make fmt-check
check-generate:
executor: golang
working_directory: /go/src/github.com/hashicorp/packer-plugin-sdk
working_directory: ~/go/src/github.com/hashicorp/packer-plugin-sdk
steps:
- checkout
- run: make generate-check
Expand Down
1 change: 1 addition & 0 deletions filelock/filelock.go
@@ -1,3 +1,4 @@
//go:build !solaris
// +build !solaris

package filelock
Expand Down
1 change: 1 addition & 0 deletions multistep/commonsteps/iso_config_test.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package commonsteps
Expand Down
1 change: 1 addition & 0 deletions packer/cache_config_unix.go
@@ -1,3 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
// +build darwin freebsd linux netbsd openbsd solaris

package packer
Expand Down
1 change: 1 addition & 0 deletions packer/cache_config_unix_test.go
@@ -1,3 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
// +build darwin freebsd linux netbsd openbsd solaris

package packer
Expand Down
1 change: 1 addition & 0 deletions packer/cache_config_windows.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package packer
Expand Down
1 change: 1 addition & 0 deletions packer/cache_config_windows_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package packer
Expand Down
1 change: 1 addition & 0 deletions pathing/config_file_unix.go
@@ -1,3 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
// +build darwin freebsd linux netbsd openbsd solaris

package pathing
Expand Down
1 change: 1 addition & 0 deletions pathing/config_file_unix_test.go
@@ -1,3 +1,4 @@
//go:build darwin || freebsd || linux || netbsd || openbsd || solaris
// +build darwin freebsd linux netbsd openbsd solaris

package pathing
Expand Down
1 change: 1 addition & 0 deletions pathing/config_file_windows.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package pathing
Expand Down
1 change: 1 addition & 0 deletions pathing/config_file_windows_test.go
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package pathing
Expand Down
1 change: 1 addition & 0 deletions sdk-internals/communicator/ssh/communicator_test.go
@@ -1,3 +1,4 @@
//go:build !race
// +build !race

package ssh
Expand Down
1 change: 1 addition & 0 deletions template/parse_test.go
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package template
Expand Down

0 comments on commit f0a450e

Please sign in to comment.