Skip to content

fix(control): ship mise-en-place disabled in the default config - #685

Merged
thomasboni merged 1 commit into
mainfrom
fix/mise-default-disabled
Dec 4, 2026
Merged

thomasboni merged 1 commit into
mainfrom
fix/mise-default-disabled

Conversation

@Exypte

@Exypte Exypte commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

fix

What this PR does / why we need it:

#665 shipped mise.enabled: true in defaultConfig/.plumber.yaml, so every config extending plumber:default runs the mise lockfile and versions checks without asking for them. A mise file that does not parse even fails the whole run (exit 2). The control should ship disabled, like the other opt-in controls.

  • defaultConfig/.plumber.yaml: mise.enabled: false. The lockfile and versions blocks stay, so mise: {enabled: true} in an overlay runs them.
  • cmd/init.go: when package managers are selected, the wizard copies the default's mise block. It now drops enabled, so the written block is on.
  • cmd/config_slim.go: a legacy config with a mise: block and no enabled key gets enabled: true in the overlay. Without it, the block would inherit the default's false.
  • Tests pin the disabled default and the opt-in path.

Which issue(s) this PR is related to:

Part of #254. Follows #665.

Special notes for your reviewer:

The repository's own .plumber.yaml keeps mise enabled.

Does this PR introduce a user-facing change?

mise-en-place no longer runs by default. A config that extends plumber:default and wants the mise checks sets `mise: {enabled: true}` (action required for configs that relied on the default).

How was this tested?

go test ./... -count=1 passes. make lint reports 7 govet reflect.Ptr hints in files this PR does not touch; main reports the same 7.

plumber analyze --controls mise-en-place on getplumber-examples/plumber-mise-example (9fc3759):

Config main (v0.7.27) this PR
extends: plumber:default, no mise: block exit 2: cannot read the mise files below ... exempt-path/broken/mise.toml: toml: incomplete number mise-en-place (disabled in configuration)
example's config with enabled: false mise-en-place (disabled in configuration) mise-en-place (disabled in configuration)
example's config as published (enabled: true) 13 findings, score 70/100 same 13 findings, score 70/100

AI usage disclosure:

YES. Claude Code wrote the change and ran the tests and the example runs. The author reviewed the change and is responsible for it.

🤖 Generated with Claude Code

plumber:default turned mise on, so every config extending it ran the
lockfile and versions checks. mise now ships disabled, and
`mise: {enabled: true}` runs the shipped checks. config init and config
slim still write an enabled block.

Part of #254.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Exypte
Exypte requested a review from thomasboni December 4, 2026 08:53
@Exypte Exypte self-assigned this Dec 4, 2026
@thomasboni
thomasboni merged commit 2a86723 into main Dec 4, 2026
18 checks passed
@thomasboni
thomasboni deleted the fix/mise-default-disabled branch December 4, 2026 09:00
plumber-release Bot pushed a commit that referenced this pull request Dec 4, 2026
## [0.7.28](v0.7.27...v0.7.28) (2026-12-04)

### 🐛 Bug Fixes

* **control:** ship mise-en-place disabled in the default config ([#685](#685)) ([2a86723](2a86723)), closes [#254](#254)
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