Skip to content

chore: make the repo a mise monorepo with per-module Go deps and tasks - #313

Merged
robrich82 merged 1 commit into
mainfrom
chore/mise-monorepo-deps
Dec 6, 2026
Merged

robrich82 merged 1 commit into
mainfrom
chore/mise-monorepo-deps

Conversation

@robrich82

@robrich82 robrich82 commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Problem

mise only knew about the repo root, so nothing installed the six modules' Go dependencies: a fresh worktree needed go mod download in each module by hand.

Change

  • mise.toml: monorepo_root = true, [monorepo].config_roots listing the six modules, and lockfile = true (keeps the single root mise.lock; this becomes mise's default in 2027.6).
  • <module>/mise.toml (all six): [deps.go], plus an include of tasks/module.toml.
  • tasks/module.toml: build, test, vet, vet-linux and vuln per module, each forwarding to the root task for that module.
  • README, CLAUDE.md and the /new-tool skill: a new module needs its mise.toml and a config_roots entry.

Behavior

  • New: mise deps --monorepo runs go mod download in each module, and only re-runs one when its go.mod/go.sum changes.
  • In monorepo mode a bare task name inside a module resolves to that module, which made mise run test in mkv-movie/ fail. It now runs mise run //:test mkv-movie. mise //:test reaches the repo-wide task from there.
  • Running tasks from the repo root and CI are unchanged.
  • Left out: auto = true on [deps.go] didn't fire before a root mise run, so dependencies still need mise deps --monorepo by hand.

Verification

mise run vet        # pass
mise run vet-linux  # pass
mise run test       # pass
mise run build      # pass

Also on Windows: mise deps --monorepo installed all six and reported them fresh on rerun, without writing into the repo. Module-level build, vet and test work, mise //:clean works from inside a module, and sh .claude/hooks/test.sh passes.

AI assistance

Written with Claude Code; diff reviewed and the checks above run.

@robrich82
robrich82 merged commit 38978fa into main Dec 6, 2026
16 checks passed
@robrich82
robrich82 deleted the chore/mise-monorepo-deps branch December 6, 2026 03:27
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.

1 participant