Repository navigation
chore: make the repo a mise monorepo with per-module Go deps and tasks - #313
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
mise only knew about the repo root, so nothing installed the six modules' Go dependencies: a fresh worktree needed
go mod downloadin each module by hand.Change
mise.toml:monorepo_root = true,[monorepo].config_rootslisting the six modules, andlockfile = true(keeps the single rootmise.lock; this becomes mise's default in 2027.6).<module>/mise.toml(all six):[deps.go], plus an include oftasks/module.toml.tasks/module.toml:build,test,vet,vet-linuxandvulnper module, each forwarding to the root task for that module./new-toolskill: a new module needs itsmise.tomland aconfig_rootsentry.Behavior
mise deps --monoreporunsgo mod downloadin each module, and only re-runs one when itsgo.mod/go.sumchanges.mise run testinmkv-movie/fail. It now runsmise run //:test mkv-movie.mise //:testreaches the repo-wide task from there.auto = trueon[deps.go]didn't fire before a rootmise run, so dependencies still needmise deps --monorepoby hand.Verification
Also on Windows:
mise deps --monorepoinstalled all six and reported them fresh on rerun, without writing into the repo. Module-levelbuild,vetandtestwork,mise //:cleanworks from inside a module, andsh .claude/hooks/test.shpasses.AI assistance
Written with Claude Code; diff reviewed and the checks above run.