Skip to content

Fix Go test suite #3175

Closed

Description

@parrt

Currently the Go target has some problems that prevented from passing tests. @Joakker and @prnvbn have agreed to help with the Go target so let's see if we can fix that first and then come back to #2504

Here's a link to the failing appveyor for Go:

...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.antlr.v4.test.runtime.go.TestCompositeLexers
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.406 sec <<< FAILURE! - in org.antlr.v4.test.runtime.go.TestCompositeLexers
org.antlr.v4.test.runtime.go.TestCompositeLexers  Time elapsed: 0.406 sec  <<< ERROR!
java.lang.Exception: 
Non-zero exit while caching go runtime, output: go: go.mod file not found in current directory or any parent directory; see 'go help modules'
	at org.antlr.v4.test.runtime.go.TestCompositeLexers.groupSetUp(TestCompositeLexers.java:24)
...

Seems go.mod is missing whatever that is!

Activity

  1. Joakker commented on May 4, 2021

    @Joakker
    Contributor

    Ok, this one should be pretty easy to implement. go.mod is a signature file that describes the directory and all it's children as part of a module. Recent versions of the go tool have migrated to using only modules by default, so more than likely that's why it's complaining. I'll open a PR shortly with the file added

  2. prnvbn commented on May 4, 2021

    @prnvbn

    Seems like running go mod init would be enough. Also @Joakker you might have to pull some weight before the 14th of May as I have University exams. After that, I will make up for it!

  3. Joakker commented on May 4, 2021

    @Joakker
    Contributor

    Is ok, no worries 😃

  4. mitar commented on May 11, 2021

    @mitar
    Contributor

    Awesome. I can update my PR (#3174) to get tests to pass there, too.

  5. parrt commented on May 23, 2021

    @parrt
    MemberAuthor

    Comments from previous thread: #2504 (comment)

  6. added this to the 4.9.3 milestone on Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions