Open kaby76 opened 1 year ago
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/v4@4.13.0 #To this exact version
go get -u github.com/antlr4-go/antlr/v4@4.13.1 #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
You should check in go.mod
and go.sum
.
Most Go programmers will have read:
https://github.com/golang/go/wiki/Modules#releasing-modules-all-versions
Note that I say most
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/v4@v4.13.0
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
.