asdf-community / asdf-direnv

direnv plugin for the asdf version manager
https://github.com/asdf-vm/asdf
Apache License 2.0
559 stars 38 forks source link

Run shfmt 0.6 against the codebase #164

Closed jfly closed 1 year ago

jfly commented 1 year ago

Our main workflow failed 5 days ago because make fmt-check wasn't happy: https://github.com/asdf-community/asdf-direnv/actions/runs/3709341700/jobs/6287859411.

Turns out brew is now giving us version 3.6.0 of shmft, which has new opinions about how bash code should be formatted. From https://github.com/mvdan/sh/blob/master/CHANGELOG.md#360---2022-12-11:

Simplify ${name:-} to the equivalent ${name-} - #849