Closed silasb closed 4 years ago
Hi @silasb, honestly I'm a bit out-of-the-loop here... is there a doc that explains what are vgo tags and how to use them?
Instead of doing versioning via package names you can now version via a git tag. I jumped the gun on this GH issue, there is no such thing as a vgo tag. It's just nicer to work with if there is a git tag. https://research.swtch.com/vgo-tour
Ok so, AFAIU, just tagging the current master as v1.0.0
should be enough right?
Yes.
It seems that also a go.mod
file is required, I think I'll wait a bit more until a stable release of go tooling to see the best way forward.
Currently using vgo build
in existing project with go-serial
as dependency will fail with this error:
import "go.bug.st/serial.v1": cannot find module providing package go.bug.st/serial.v1
If I add the dependency manually to go.mod
it will fail with below error:
go: go.bug.st/serial.v1@v0.0.0-20170728081230-eae1344f9f90: unrecognized import path "go.bug.st/serial.v1" (https fetch: Get https://go.bug.st/serial.v1?go-get=1: net/http: TLS handshake timeout)
I guess that's because vgo
wasn't able to access that URL, but I don't really know how to fix this.
I fixed it via: https://github.com/silasb/betaflight-app/blob/master/go.mod
If the repo was tagged with a git version then I think it would be easier to work with.
—Silas
On Sun, Aug 19, 2018 at 10:29 PM, maddie notifications@github.com wrote:
Currently using vgo build in existing project with go-serial as dependency will fail with this error:
import "go.bug.st/serial.v1": cannot find module providing package go.bug.st/serial.v1
If I add the dependency manually to go.mod it will fail with below error:
go: go.bug.st/serial.v1@v0.0.0-20170728081230-eae1344f9f90: unrecognized import path "go.bug.st/serial.v1" (https fetch: Get https://go.bug.st/serial.v1?go-get=1: net/http: TLS handshake timeout)
I guess that's because vgo wasn't able to access that URL, but I don't really know how to fix this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bugst/go-serial/issues/49#issuecomment-414180559, or mute the thread https://github.com/notifications/unsubscribe-auth/AACe3k-ortf2cLA8f7H3c0DNw8A7tARJks5uSh7wgaJpZM4UJnyD .
go mod
is now supported with the import go.bug.st/serial
.
Any plans to support vgo tags?