-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
can't run linter goanalysis_metalinter: inspect: failed to load package sugar: could not load export data: no export data for #212
Comments
golangci/golangci-lint#1920 seems to suggest an invalid go modules file can cause this - are you able to validate you have a correct |
I aligned the go version from the Here is a verbose output of the command.
|
Was this ever resolved? |
I'm going to kill the sugar package. It was always an experimental concept, but the longer it has been out the more I feel it's an anti-pattern. I'm currently focussed on making the package layout more sensible, and during that process will remove the sugar package. It will be gone in the next beta release, which will contain support for v4 pacts and plugins. |
Ahh ok @mefellows . I am getting a similar error but I am getting this:
|
Interesting. If you can figure out why it's failing and how to address it, happy to do so. It could be because that package has CGo code in it, and maybe it doesn't like that. |
Hello, the problem inside golangci-lint is now fixed, and it will be shipped in the next bug fix release. |
Great, thanks for the update! I'm going to close this issue unless there is something required by Pact to fix. |
Software versions
-
go version go1.18.1 linux/amd64
go env
Expected behaviour
Should lint file correctly
Actual behaviour
Steps to reproduce
Below is the file importing
sugar
internal/b2b/b2b_contract_test.go
Relevent log files
Please ensure you set logging to
DEBUG
and attach any relevant log files here (or link from a gist).The text was updated successfully, but these errors were encountered: