Skip to content

Some linters don't get enabled automatically #1018

@xephos1one

Description

@xephos1one

My repo contains multiple .yml files yamllint should be automatically enabled when initializing trunk and while doing so yamllint gets queried:

Initializing 24% [==========================================================>                                                                                                                                                                                                ]  4/17  6.0s 

 ↳ Querying latest versions                                                                                                                                                                                                                                                                
   ↳ bandit ⠋                                                                                                                                                                                                                                                                              
   ↳ checkov ⠋                                                                                                                                                                                                                                                                             
   ↳ ruff ⠋                                                                                                                                                                                                                                                                                
   ↳ yamllint ⠋

but in the end it doesn't enable it:

Initializing 100% [=======================================================================================================================================================================================================================================================>]  17/17  11.6s 
Formatting Configs 100% [==================================================================================================================================================================================================================================================>]  12/12  0.7s 
                                                                                                                                                                                                                                                                                           
✔ 9 linters were enabled (.trunk/trunk.yaml)

  dotenv-linter 3.3.0 (1 dotenv file)
  git-diff-check (55 files)
  hadolint 2.12.1-beta (1 docker file) (created .hadolint.yaml)
  markdownlint 0.44.0 (1 markdown file) (created .markdownlint.yaml)
  osv-scanner 2.0.1 (1 lockfile file)
  oxipng 9.1.4 (1 png file)
  prettier 3.5.3 (1 markdown, 35 yaml files)
  taplo 0.9.3 (4 toml files)
  trufflehog 3.88.25 (55 files)

Enabling it manually also fails with a not very helpful error message:

$ trunk check enable yamllint
✖ Trunk Internal Error: Please report this issue at https://slack.trunk.io (reference id: f01c5258b2754cc449002b678acfb147)

I don't use Slack so I reported it here.

Using the VS Code extension with Ubuntu 22.04.5 LTS in WSL2.
In this environment I use a proxy server to connect to the internet, in case this might be important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions