aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/install-common.bash
AgeCommit message (Collapse)Author
2023-11-05Add support for formatters locally installed via yarn 2+ pnp mode (#200)Ed Slocomb
This adds support for formatters installed locally in project directories via yarn 2's "zero install" [pnp mode](https://yarnpkg.com/features/pnp). It's quite similar to the support for formatters installed locally in a project's `node_modules` via npm, and leverages the `npx` symbol, so existing formatter definitions should work without modification. This checks for a `.pnp.cjs` file (expected in the project root for yarn pnp projects), then looks for a yarn executable, and checks the version of yarn to make sure it supports pnp. If that works, we just push `"yarn"` onto the front of `command`. I've only tested this with a locally installed `prettier.js`. It's very much a works-for-me draft, I'm putting in a PR to make sure this is a workable approach before going any further with it. --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2023-10-06use up-to-date golang (#218)Ed Slocomb
While running a full `make fmt-build`, I got some failures with installer scripts for golang formatters. This fixes the problem by installing an up-to-date golang instead of the version available in ubuntu 20.04. The ppa used here, `longsleep/golang-backports` is [recommended](https://github.com/golang/go/wiki/Ubuntu) by the Go project. --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
2022-05-12Add shfmt (#90)Ellis KenyƑ
* feat: add shfmt Add support for shfmt * Handle multiple architectures Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
2022-01-05Add formatter tests (#72)Radon Rosborough
Closes #24 Builds on #25 by @PrimaryCanary