From 4d9b548d615c5ce27cdb374ab2e24dc9baefb36b Mon Sep 17 00:00:00 2001 From: Dmitry Savintsev Date: Wed, 29 Dec 2021 13:29:50 +0100 Subject: [PATCH] use 'go get' instead of 'go install' to install (#449) --- CHANGELOG.md | 4 ++++ README.md | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e85ebaa..1f27bf2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt ## [Unreleased] +### Changed + +- suggest to use `go install` instead of the deprecated `go get` to install the `godog` binary ([449](https://github.com/cucumber/godog/pull/449) - [dmitris](https://github.com/dmitris)) + ### Fixed - After Scenario hook is called before After Step ([444](https://github.com/cucumber/godog/pull/444) - [vearutop]) diff --git a/README.md b/README.md index 744a501..e81b1a8 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,11 @@ When automated testing is this much fun, teams can easily protect themselves fro ## Install ``` -go get github.com/cucumber/godog/cmd/godog@v0.12.0 +go install github.com/cucumber/godog/cmd/godog@v0.12.0 ``` Adding `@v0.12.0` will install v0.12.0 specifically instead of master. +With `go` version prior to 1.17, use `go get github.com/cucumber/godog/cmd/godog@v0.12.0`. Running `within the $GOPATH`, you would also need to set `GO111MODULE=on`, like this: ``` GO111MODULE=on go get github.com/cucumber/godog/cmd/godog@v0.12.0 @@ -603,4 +604,4 @@ A simple example can be [found here](/_examples/custom-formatter). [cucumber]: https://cucumber.io/ "Behavior driven development framework" [license]: https://en.wikipedia.org/wiki/MIT_License "The MIT license" [contributing guide]: https://github.com/cucumber/godog/blob/main/CONTRIBUTING.md -[community Slack]: https://cucumber.io/community#slack \ No newline at end of file +[community Slack]: https://cucumber.io/community#slack