Skip to content
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

Install yamlfmt, if its not available #2

Open
bluebrown opened this issue Jul 22, 2023 · 1 comment
Open

Install yamlfmt, if its not available #2

bluebrown opened this issue Jul 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bluebrown
Copy link
Owner

It could be more user-friendly to install yamlfmt for the user, if it's not already installed on the system

@bluebrown bluebrown added the enhancement New feature or request label Jul 22, 2023
@Araxeus
Copy link

Araxeus commented Jun 12, 2024

I wanted this extension to format my github-actions-workflow files, but not having Go installed I had to find another way to install yamlfmt

so I used https://github.com/Araxeus/vendorfiles (installed using bun/nodejs) to install and keep it updated from github releases

with the following config:
  yamlfmt:
    version: v0.12.1
    repository: https://github.com/google/yamlfmt
    vendorFolder: "{vendorFolder}"
    files:
      - "{release}/yamlfmt_{version}_Windows_x86_64.tar.gz":
          - yamlfmt.exe

I write this hoping it can help someone in my situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants