Use mise to manage ormolu and cabal-gild in CI and locally#3930
Open
Use mise to manage ormolu and cabal-gild in CI and locally#3930
Conversation
This was referenced Mar 18, 2026
cprecioso
commented
Mar 18, 2026
waspc/run
Outdated
| PRETTIER_CHECK_CMD="(cd .. && npm ci && npm run check:prettier)" | ||
| PRETTIER_FORMAT_CMD="(cd .. && npm ci && npm run format:prettier)" | ||
| ORMOLU_BASE_CMD="$(install_dev_tool ormolu) && $(dev_tool_path ormolu) --color always --check-idempotence" | ||
| ORMOLU_BASE_CMD="mise x ormolu -- ormolu --color always --check-idempotence" |
Member
Author
There was a problem hiding this comment.
mise x ormolu ensures that we're using the Mise-requested ormolu version even if Mise is not correctly hooking into the current env, or if the tool is not yet installed.
@wasp.sh/wasp-cli
@wasp.sh/wasp-cli-darwin-arm64-unknown
@wasp.sh/wasp-cli-darwin-x64-unknown
@wasp.sh/wasp-cli-linux-x64-glibc
@wasp.sh/wasp-cli-linux-x64-musl
commit: |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Description
Important
For an overview of what is Mise, how it works and how it (doesn't) change our local environments, I made this small write-up: https://gist.github.com/cprecioso/a5cdae82d31dfe3561c7db1c49df594c
Introduce mise as the version manager for formatting tools (ormolu and cabal-gild), replacing the previous approach of building them from source via
dev-tool.projectand using third-party GitHub Actions. This gives a single source of truth for tool versions (mise.toml), faster CI runs (pre-built binaries instead of Cabal builds), and a simpler local developer experience (run throughmiseinstead ofinstall_dev_tool/dev_tool_path).Changes:
mise.tomlandmise.lockat the repo root pinning ormolu and cabal-gild versions.waspc/runto invoke tools viamise xinstead of building them fromdev-tool.project.dev-tool.project.haskell-actions/run-ormoluandtfausak/cabal-gild-setup-actionin CI withjdx/mise-action.This unlocks upgrading the versions of
ormoluandcabal-gild:Type of change
Checklist
I tested my change in a Wasp app to verify that it works as intended.
🧪 Tests and apps:
examples/kitchen-sink/e2e-tests.waspc/data/Cli/templates, as needed.examples/, as needed.examples/tutorials) I updated the tutorial in the docs (and vice versa).📜 Documentation:
web/docs/.🆕 Changelog: (if change is more than just code/docs improvement)
waspc/ChangeLog.mdwith a user-friendly description of the change.web/docs/migration-guides/.versioninwaspc/waspc.cabalto reflect the changes I introduced.