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

Feature/gomod4110 #3852

Merged
merged 4 commits into from
Aug 31, 2022
Merged

Feature/gomod4110 #3852

merged 4 commits into from
Aug 31, 2022

Conversation

jimidle
Copy link
Collaborator

@jimidle jimidle commented Aug 31, 2022

feat: #3840 Implement go runtime v4 path correctly so that release tags work.

Though this PR will seem like a huge change, in fact most of the changes are just copying the existing runtime module to a new module path github.com/antlr/antlr4/runtime/Go/antlr/v4 so that Go runtime tags will actually work in this release.

The actual changes are:

  • Updated documentation
  • Change Go codegen template to use the new v4 path
  • Change go test suite to use new v4 path
  • Change v4/go.mod to use the new runtime path

NB Though the runtime path changes to v4 the public runtime API has not changed and it is very little work to change
to use the new module path. Most go programmers will know how to do this, but it is also documented.

Jim.Idle added 3 commits August 31, 2022 14:44
…ase tagging

Note that the vast majority of the changes here are just copying the runtime file in to
the /v4 subdirectory so that we can support legacy projects that use GOPATH only, as well
as users that can use go modules. At a later release, we will delete the default path, and move
the v4 subdirectory back to the top level. But, we cannot do that on this release.

Signed-off-by: Jim.Idle <[email protected]>
@jimidle jimidle mentioned this pull request Aug 31, 2022
10 tasks
@parrt parrt added this to the 4.11 milestone Aug 31, 2022
@parrt
Copy link
Member

parrt commented Aug 31, 2022

Looks good to me but let's synchronize so I don't screw this up.

Oh, sorry emerged something related to the test rig from @KvanTTT and so there's a conflict you might want to resolve quickly.

@parrt
Copy link
Member

parrt commented Aug 31, 2022

Ok, looking good on Go target...merging!

@parrt parrt merged commit 39e1719 into antlr:dev Aug 31, 2022
@parrt
Copy link
Member

parrt commented Sep 4, 2022

@jimidle shouldn't we delete the non-v4 version of the Go code?

@jimidle
Copy link
Collaborator Author

jimidle commented Sep 5, 2022 via email

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

Successfully merging this pull request may close these issues.

2 participants