Skip to content

fix(setup): switch taplo pre-commit from source compilation to system binary - #229

Merged
c-vigo merged 5 commits into
devfrom
bugfix/226-taplo-system-binary
Mar 7, 2026
Merged

c-vigo merged 5 commits into
devfrom
bugfix/226-taplo-system-binary

Conversation

@gerchowl

@gerchowl gerchowl commented Mar 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Switch taplo pre-commit hooks from language: rust (cargo compile from source) to language: system using a pre-installed binary — same pattern used for hadolint. This unblocks the image build which was failing due to taplo Rust compilation issues.

What changed

  • Pre-commit configs (.pre-commit-config.yaml, assets/workspace/.pre-commit-config.yaml): replace ComPWA/taplo-pre-commit repo with local language: system hooks for both taplo-format and taplo-lint
  • Containerfile: add taplo binary installation from GitHub releases (multi-arch: amd64/arm64)
  • CI setup-env action: add install-taplo input and installation step; enable it in test-project action
  • scripts/requirements.yaml: add taplo entry with brew (macOS) and GitHub release binary (Linux) install methods
  • CONTRIBUTE.md: document taplo as a host dependency with installation instructions
  • Tests: add test_taplo_installed and test_taplo_version to image test suite
  • CHANGELOG: document the fix under the existing ## [0.7.0] Fixed section

Test plan

  • Pre-commit hooks pass with taplo as system binary
  • just init installs taplo on host
  • just build succeeds with taplo available in image
  • CI passes with taplo installed via setup-env action

Refs: #226

@gerchowl
gerchowl requested a review from c-vigo as a code owner March 6, 2026 19:14
gerchowl added 3 commits March 7, 2026 07:36
… binary

- Add taplo to requirements.yaml with brew (macOS) and GitHub release (Linux)
- Replace ComPWA/taplo-pre-commit with local language:system hooks
- Add taplo binary install to Containerfile (like hadolint pattern)

Refs: #226
The release asset naming changed in newer taplo versions:
taplo-full-{triple}.gz -> taplo-linux-{arch}.gz

Refs: #226
The taplo pre-commit hooks now use language:system and need
the binary installed in CI, same as hadolint.

Refs: #226
@c-vigo
c-vigo force-pushed the bugfix/226-taplo-system-binary branch from 8b4eefd to 33ae417 Compare March 7, 2026 06:36
@c-vigo

c-vigo commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Force-push notice: Rebased to drop commit 7dcc1e0 ("chore: add Nix flake devShell for reproducible host tooling") from this branch — that commit belongs to #228 and was included here by mistake.

The 3 taplo-related commits are unchanged in content, just rebased onto a new base (new SHAs). No functional changes.

@c-vigo
c-vigo enabled auto-merge March 7, 2026 06:47
@c-vigo
c-vigo merged commit 25031ad into dev Mar 7, 2026
20 of 22 checks passed
@c-vigo
c-vigo deleted the bugfix/226-taplo-system-binary branch March 7, 2026 06:53
c-vigo added a commit that referenced this pull request Mar 9, 2026
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