-
Notifications
You must be signed in to change notification settings - Fork 19
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
Lint, gofmt #207
Lint, gofmt #207
Conversation
Due to vendoring, this looks like a >250K line diff, but I've kept my commits atomic. Hopefully it's not too painful to review. |
Looking at the tests it doesn't look to be building. |
Thanks, I couldn't see the failures before but they're caused by docker using strings.Cut, which wasn't introduced to stdlib until go 1.18. commander + circleci was set to 1.17. Debian stable supports 1.19, so I've updated the go version numbers to 1.19. |
Seems they changed their image names: https://circleci.com/developer/images/image/cimg/go 😄 |
bfcaca4
to
7e14839
Compare
Looks like first, curl was refusing to run, and now the test-reporter is refusing to run. Is there a chance you might be able to look into the test-reporter failure? Very likely, this image is significantly different from the prior one and is missing a lot of functionality that the project was using. Might be better to just use the standard golang image. |
the
|
With that reversion, my PR and your master 1.21 bump should match. |
Also this...
curl is definitely in there... In the past I have problem swith circle and it's transient errors... |
Alright so something about make and latest debian, when executing in circle ci, only when executing from a docker run, on a thursday in November, does it not work 🥲 But yeah I set the test image back to debian bullseye. I don't really feel like opening the issues for all the places cause we're probably not gonna get anywhere. Hopefully some big corporation hits a wall with this 🤷. Probably will just move to github actions when the time comes. |
@dylanhitt it's now friday UTC and the tests have passed. 🤣 (for real though, it was definitely the image.) |
Hey, don't mean to double tag but the github outage lost all my pr notifications so in case yours are gone too, I'm bumping this. Feel free to ignore if you're busy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@taigrr can you squash this into one commit. Thank you |
automatic gofmt chore: update go deps, fix broken docker api run gofmt and linting to remove deprecation warnings bump go version to latest available to debian https://discuss.circleci.com/t/go-lang-docker-image-circleci-golang-1-19-is-missing/44961 fix golang => go for new circleci images remove curl dependency chore: bump go version to 1.21 Revert "remove curl dependency" This reverts commit 7e14839. chore: forgot test dockerfile
Whoops, my indexes were off by one. Is this ok? |
Should be able to do a squash from the github UI now as well |
Looks like not all the integration tests run in the PR that run on master |
Yeah, the windows test burn through circle ci minutes. Feel free to fix them or I'll do it later. |
I think just need to update the windows version tag from v2.1.0 to v5.0.0, but I can't trigger the CI to test without a merge so it's best for you to do it |
Updates code to remove deprecation notices and update dependencies accordingly.
Runs
gofmt
,golint
, etc. to apply DeMorgan's law, and use go code simplifier.Removes dependency on deprecated
ioutil
package.Checklist
Linux
,Windows
andmacOS
?