-
Notifications
You must be signed in to change notification settings - Fork 258
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
Failed to compile testmain package when running example even set GO111MODULE=off #405
Comments
Godog is a Go Module, you can't use it without GO111MODULE=on. |
This is what I found in the Godog documentation. |
When I try to build with go modules turned off, I get the following error message:
I think this is related to internal/builder/builder.go#L130 where Even though we use a go module, we have vendored all our source code using It would be helpful if calling |
@vearutop that was fast! Sorry it took me some time to validate your changes but for me these work really nice. It would be great to see them in the main release. |
Fixed in |
Please answer these questions before submitting a bug report.
What version of godog are you using?
What version of Go are you using?
What did you do?
If possible, provide a recipe for reproducing the error.
I was trying to run the example from README.MD. It ran successfully at first. The code was within the Go workspace ($HOME/go/src). I pushed the code to GitHub, then trying to run other examples with
godog
What did you expect to see?
Other Godogs examples will be run successfully
What did you see instead?
Note : the
godog-cucumber-playaround
is the public Git repo, which I pushed my code here.Additional context
After referred to https://github.com/cucumber/godog#examples to use
GO111MODULE=off
, I still cannot get it works properlyThe CLI showed like this
The solution works for me
Move the project out of $GOPATH and run
godog
again (without usingGO111MODULE=off
)The text was updated successfully, but these errors were encountered: