Skip to content

Commit

Permalink
use 'go get' instead of 'go install' to install (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitris committed Dec 29, 2021
1 parent b850b44 commit 4d9b548
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
[community Slack]: https://cucumber.io/community#slack

0 comments on commit 4d9b548

Please sign in to comment.