You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Go instructions say If you have not yet run a go get, you can now run go mod tidy and update your. "your ......." what? It's an incomplete sentence and I'm not sure what it's trying to say.
Again, referring to the same sentence, why would anyone do a go mod tidy, when it says immediately before to do a go get -u github.com/antlr4-go/antlr. I don't do a "go mod tidy", and the builds work fine.
Question: Is it go get -u github.com/antlr4-go/antlr or is it go get -u github.com/antlr4-go/antlr/v4?? I use the latter, and that works for me. But, I don't understand if there is a difference between go get -u github.com/antlr4-go/antlr and go get -u github.com/antlr4-go/antlr/v4.
The instructions don't make it clear how to use a specific version of Antlr. I found out that go get -u github.com/antlr4-go/antlr/[email protected] works. Would have been nice if that was in the instructions.
I need to use Github Dependabot to update the Go target for Antlr4 when there's a new release made. I don't want to pick up the latest of Go and be subjected to changes that I haven't reviewed. Further, the "antlr4" Python tool isn't really robust when trying to figure out the latest version of the tool. antlr4 isn't robust with slow links. antlr4-tools#13. So, I would prefer not to do go get -u github.com/antlr4-go/antlr for every build via go build Test.go.
I don't know whether to check into version control the go.mod, the go.sum, or both.
I don't know how yet to set up the dependabot.yml file for Go. Anyone have experiences with this?
The text was updated successfully, but these errors were encountered:
I will take a look. Those docs were updated in a bit of a rush. However, I think that I may have already fixed the go get -u github.com/antlr4-go/antlr/v4 piece - it is definitely that - you need the /v4. I will fix if I have not already done it. I have some local changes that I have not had time to properly review before submitting the PR.
go mod tidy
...will look at the source and remove any unused references and add any that are missing. If you have not run a go get but just generated the code, then go mod tidy will do it all for you. This should be run anyway, but will sometimes not need to do anything.
The instructions do rely on you knowing the go tooling, so I don't explain how to use a specific version as this should be common knowledge for Go programmers - I can add it for free though ;). I know you are not really advertising yourself as a Go programmer.
For instance:
go get -u github.com/antlr4-go/antlr/v4
or go get -u github.com/antlr4-go/antlr/v4@latest
Should update you to the latest tag.
go get -u github.com/antlr4-go/antlr/[email protected] #To this exact version go get -u github.com/antlr4-go/antlr/[email protected] #To this exact version, etc
There is also:
go get -u github.com/antlr4-go/antlr/v4@devel
go get -u github.com/antlr4-go/antlr/v4@master
go get -u github.com/antlr4-go/antlr/v4@tag
If you have not yet run a go get, you can now run go mod tidy and update your
. "your ......." what? It's an incomplete sentence and I'm not sure what it's trying to say.go mod tidy
, when it says immediately before to do ago get -u github.com/antlr4-go/antlr
. I don't do a "go mod tidy", and the builds work fine.go get -u github.com/antlr4-go/antlr
or is itgo get -u github.com/antlr4-go/antlr/v4
?? I use the latter, and that works for me. But, I don't understand if there is a difference betweengo get -u github.com/antlr4-go/antlr
andgo get -u github.com/antlr4-go/antlr/v4
.go get -u github.com/antlr4-go/antlr/[email protected]
works. Would have been nice if that was in the instructions.go get -u github.com/antlr4-go/antlr
for every build viago build Test.go
.The text was updated successfully, but these errors were encountered: