Skip to content

Commit 29449d2

Browse files
committed
Replace go get with go install for gen deps
* Replaces the deprecated `go get` calls with `go install`. * Add version to pigeon install command The v1.1.0 release of pigeon was released back in March of 2021 points to the latest change in the master branch, which was committed over two years ago. Instead of pulling from master we will pull in the latest release and update dependenbot to check for this dependency. * Add github.com/mna/pigeon to dependebot tracking file Related to: #103
1 parent a74de19 commit 29449d2

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ updates:
1313
- dependency-name: "github.com/hashicorp/packer"
1414
- dependency-name: "github.com/hashicorp/hcl/v2"
1515
- dependency-name: "github.com/zclconf/go-cty"
16+
- dependency-name: "github.com/mna/pigeon"
1617
ignore:
1718
- dependency-name: "github.com/aws/aws-sdk-go"

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@ default: install-build-deps install-gen-deps generate
99
ci: testrace ## Test in continuous integration
1010

1111
install-gen-deps: ## Install dependencies for code generation
12-
# to avoid having to tidy our go deps, we `go get` our binaries from a temp
13-
# dir. `go get` will change our deps and the following deps are not part of
14-
# out code dependencies; so a go mod tidy will remove them again. `go
15-
# install` seems to install the last tagged version and we want to install
16-
# master.
17-
@(cd $(TEMPDIR) && GO111MODULE=on go get github.com/mna/pigeon@master)
18-
@(cd $(TEMPDIR) && GO111MODULE=on go get github.com/alvaroloes/enumer@master)
12+
@go install github.com/mna/pigeon@v1.1.0
13+
@go install github.com/alvaroloes/enumer@master
1914

2015
@go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc
2116

0 commit comments

Comments
 (0)