Skip to content

Conversation

guggero
Copy link
Contributor

@guggero guggero commented Aug 3, 2022

Wanted to add fuzz test coverage in another PR and noticed we'd need to bump the tool chain (and with it the linter) to Go 1.18 first.

@guggero guggero marked this pull request as ready for review August 3, 2022 17:59
Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

we just need to run go get github.com/ory/go-acc inside the tools folder so it gets added to the module + fix the mock gen.
I was able to run make gen without any issues locally in the branch so I am not sure if there is a cache problem here.

Copy link
Member

@sputn1ck sputn1ck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Just noticed that we skip more linters here than in loop (namely forbidigo and promlinter).

However at some point we should just review which linters we want to enforce and codeadjust for between our projects.

- stylecheck
- thelper
- nosprintfhostport
- errchkjson
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't check with other linters, but errchkjson and nosprintfhostport could be removed and the linter still runs through just well. At some point we might need to go through all the linters and either code-adjust or change the comment above.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree, we should probably take the time to set a fixed list of linters we want to have active and then synchronize all the linter setting files across all our projects.

@guggero guggero force-pushed the go-1.18 branch 2 times, most recently from ae93ad2 to 30680e7 Compare August 4, 2022 12:37
The docker build image cache seems to cause more problems and take
longer to load than it would take to build the image from scratch, so we
remove it.
Instead we make sure that we use the latest version of the 1.18 Golang
branch.
@guggero
Copy link
Contributor Author

guggero commented Aug 4, 2022

I have no idea why the mock generation fails on GitHub. I cannot reproduce it locally, neither by running the command directly nor with the dockerized GitHub actions runner act... @positiveblue or @sputn1ck can you reproduce the error Error: 2022/08/04 12:44:43 Loading input failed: sidecar/interfaces.go:300:9: failed parsing arguments: sidecar/interfaces.go:300:39: unknown package "btcec"?

@sputn1ck
Copy link
Member

sputn1ck commented Aug 4, 2022

I have no idea why the mock generation fails on GitHub. I cannot reproduce it locally, neither by running the command directly nor with the dockerized GitHub actions runner act... @positiveblue or @sputn1ck can you reproduce the error Error: 2022/08/04 12:44:43 Loading input failed: sidecar/interfaces.go:300:9: failed parsing arguments: sidecar/interfaces.go:300:39: unknown package "btcec"?

Can't reproduce either

The docker image was sharing the cache dir with the host and that was
causing some permission problems in our ci (github actions).
@positiveblue
Copy link
Contributor

@guggero i added a commit on top of yours fixing the mock gen step. We were sharing the go cache with the host and that was causing some permission problems.

@guggero
Copy link
Contributor Author

guggero commented Aug 5, 2022

@positiveblue thanks for figuring it out 🎉

@guggero guggero merged commit b283ca9 into lightninglabs:master Aug 5, 2022
@guggero guggero deleted the go-1.18 branch August 5, 2022 08:03
positiveblue pushed a commit to positiveblue/pool that referenced this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants