Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go mod not getting the latest version #27

Closed
xiegeo opened this issue Aug 28, 2018 · 3 comments
Closed

Go mod not getting the latest version #27

xiegeo opened this issue Aug 28, 2018 · 3 comments

Comments

@xiegeo
Copy link

xiegeo commented Aug 28, 2018

Using the mod feature of newly released go1.11 and importing go-rpio as a library causes a downgrade to v3.0.0.

In go.mod file, the version is listed as github.com/stianeikeland/go-rpio v3.0.0+incompatible, where:

  • v3.0.0 is the larges version tagged following the SIV, since 4.0.0 and 4.1.0 are missing v so they are ignored.
  • +incompatible prevent the import path from adding the major version.

Adding the tags v4.0.0 and v4.1.0 should fix the immediate problem.

more information about +incompatible flag form another Go project.

@drahoslove drahoslove mentioned this issue Nov 28, 2018
@stianeikeland
Copy link
Owner

Hey, thanks, could you try again now? v4.3.0 was just released and tagged.

@xiegeo
Copy link
Author

xiegeo commented Nov 30, 2018

I can update to v4.2.0+incompatible, but not v4.3.0

Attempting to add v4 to import path results in this error:

github.com/stianeikeland/go-rpio/v4
go build github.com/stianeikeland/go-rpio/v4: no Go files in

https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher

I think module github.com/stianeikeland/go-rpio in go.mod need to be changed to module github.com/stianeikeland/go-rpio/v4

@stianeikeland
Copy link
Owner

Thanks man, think I got it working now, added /v4 and published a new release. Seems to be working on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants