-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ci: bump shfmt to 3.5.1, simplify CI setup #3379
Conversation
Rebased; bumped shfmt to 3.4.3. @AkihiroSuda @thaJeztah PTAL |
CI is failing because of Azure Ubuntu mirror issues
will restart it later. |
So, as I pointed out in #3379 (comment), we need shfmt 3.5.0 (not yet released) to further simplify things and use docker, so let's set this to pause for now. |
OK, shfmt 3.5.0 is out as of 8 days ago, but the docker image is still not :( |
And the reason is mvdan/sh#860 I'm going back to fetching the binary. |
This only took a few months 🤣 |
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.
LGTM 🎉
oh! CI is failing? Let me check |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
52d5a3a
to
d40cb3b
Compare
Solved this one via PTAL @thaJeztah |
Rebased, resolved merge conflicts, addressed a nit from @AkihiroSuda @thaJeztah PTAL |
Needs rebase |
Rebased; PTAL @thaJeztah @AkihiroSuda |
1. Bump shfmt to v3.5.1. Release notes: https://github.com/mvdan/sh/releases 2. Since shfmt v3.5.0, specifying -l bash (or -l bats) is no longer necessary. Therefore, we can use shfmt to find all the files. Add .editorconfig to ignore vendor subdirectory. 3. Use shfmt docker image, so that we don't have to install anything explicitly. This greatly simplifies the shfmt CI job. Add localshfmt target so developers can still use a local shfmt binary when necessary. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
CI failure is a flake, see #3540; CI restarted. |
Bump shfmt to v3.5.1. Release notes:
https://github.com/mvdan/sh/releases
Since shfmt v3.5.0, specifying
-l bash
(or-l bats
) is no longernecessary. Therefore, we can use shfmt to find all the files.
Add
.editorconfig
to ignorevendor
subdirectory.Use shfmt docker image, so that we don't have to install anything
explicitly. This greatly simplifies the shfmt CI job. Add
localshfmt target so developers can still use a local shfmt binary
when necessary.