Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Go get fetches v3.4.0 if using go modules #421

Closed
hassiexx opened this issue Aug 27, 2019 · 3 comments
Closed

Go get fetches v3.4.0 if using go modules #421

hassiexx opened this issue Aug 27, 2019 · 3 comments

Comments

@hassiexx
Copy link

hassiexx commented Aug 27, 2019

Describe the bug
If working with a project with Go modules, go get will always fetch v3.4.0 as the latest version.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a new go project outside the Go path

  2. Run go mod init

  3. Run go get -u periph.io/x/periph

  4. You should see a similar output below

go: finding periph.io/x/periph v3.4.0+incompatible
go: downloading periph.io/x/periph v3.4.0+incompatible
go: extracting periph.io/x/periph v3.4.0+incompatible

Expected behavior
The latest version should be fetched, which at the time of writing is v3.6.1.

Platform (please complete the following information):

  • OS: Windows 10 x64 1903
  • Go: 1.12.7
@maruel
Copy link
Contributor

maruel commented Aug 27, 2019

I was discussing this on the slack channel. My current thinking is:

  • Remove go.mod and go.sum and do a release
  • Add it back in v4 and do a full conversion. That means a recent Go version will be required.

@hassiexx
Copy link
Author

👍

@maruel
Copy link
Contributor

maruel commented Aug 27, 2019

Fixed in 8dc522f. Released v3.6.2.

@maruel maruel closed this as completed Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants