Skip to content

fix: check --only and --exclude before tool setup in extension fix and format - #1624

Merged
Malte Janz (MalteJanz) merged 1 commit into
feat/add-exclude-flag-to-extension-format-and-fixfrom
fix/extension-select-tools-before-setup
Sep 28, 2026
Merged

Malte Janz (MalteJanz) merged 1 commit into
feat/add-exclude-flag-to-extension-format-and-fixfrom
fix/extension-select-tools-before-setup

Conversation

@moshimorschi

Copy link
Copy Markdown
Contributor

What changed?

extension fix and extension format now check --only and --exclude before SetupTools runs and before the extension is parsed. PreRunE is gone, SetupTools is called in RunE right before the tools start.

Why?

Same order as extension validate. On a cold cache a typo in a tool name currently triggers the tool install first and reports the error afterwards. Not urgent, the install is cached anyway; this just gives the error straight away.

How was this tested?

go test ./cmd/extension ./cmd/project ./internal/verifier, plus manual runs with a bad --exclude on an empty cache: the error now comes before any setup.

Related issue or discussion

Follow-up to #1616, targets its branch so it can be merged into it or dropped.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 1525bd98-1862-4dc7-853d-7e22b821cce3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MalteJanz
Malte Janz (MalteJanz) merged commit 3d8aba5 into feat/add-exclude-flag-to-extension-format-and-fix Sep 28, 2026
5 checks passed
@MalteJanz
Malte Janz (MalteJanz) deleted the fix/extension-select-tools-before-setup branch September 28, 2026 09:38
Malte Janz (MalteJanz) added a commit that referenced this pull request Sep 28, 2026
* feat: add exclude flag to extension format and fix

* fix: check --only and --exclude before tool setup in extension fix and format (#1624)

* fix: toolDirectory and setuptools call ordering for extension fix + format

---------

Co-authored-by: Lena Forlin <118278183+moshimorschi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants