Skip to content

fix(dogfood/coder): override mise oci build MISE_CONFIG_DIR bake - #25684

Merged
ThomasK33 merged 1 commit into
mainfrom
worktree-mise-config-dir-fix
May 26, 2026
Merged

ThomasK33 merged 1 commit into
mainfrom
worktree-mise-config-dir-fix

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Inside the dogfood workspace, mise config ls doesn't load ~/.config/mise/config.toml or ~/.config/mise/conf.d/* because mise oci build bakes ENV MISE_CONFIG_DIR=/etc/mise into the synthesized image layer that sits on top of Dockerfile.base. That silently drops the user-owned trust file the install-deps coder_script seeds at workspace start (dogfood/coder/main.tf:705-727), so the user-editable mise trust path config never takes effect.

The natural place for this would be [oci.env] in the project mise.toml, but a probe build confirms mise's internal env bake currently wins on MISE_* key collisions (non-MISE keys flow through). Setting MISE_CONFIG_DIR in coder_agent.env works around that by applying after the image ENV resolves. The comment in the diff calls out moving this back to [oci.env] once upstream mise respects user values.

🤖 Generated with Claude Code

mise oci build bakes ENV MISE_CONFIG_DIR=/etc/mise into the synthesized
image layer, which silently breaks loading of ~/.config/mise/conf.d/*,
including the user-owned trust file install-deps seeds.

Change-Id: I3857a1a2a12a19faee3dca4f9c11100d099183cd
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@ThomasK33
ThomasK33 marked this pull request as ready for review May 26, 2026 16:25
@ThomasK33
ThomasK33 merged commit e9f0f81 into main May 26, 2026
35 checks passed
@ThomasK33
ThomasK33 deleted the worktree-mise-config-dir-fix branch May 26, 2026 16:44
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants