🎁 New:
  • Trunk single player mode:
    trunk init --invisible
    will add
    .trunk
    to your local git ignores (.git/info/exclude) so you can use trunk with commiting anything to your repository.
  • trunk init share
    will remove
    .trunk
    from your local git ignores if it exists.
  • trunk init hide
    will add
    .trunk
    to your local git ignores if it doesn't exist.
  • When checking for the latest version of tools, trunk now uses its own caching service to avoid GitHub api limits.
  • New default action: trunk-share-with-everyone, creates a notification to unignore .trunk when it is found in
    .git/info/exclude
    .
  • Swift support (macOS only):
    stringslint
    ,
    swiftlint
    ,
    swiftformat
✨ Improved:
  • Trunk will now watch
    trunk.yaml
    and turn on git hook management automatically when enabling git hooks.
  • Trunk will now stop managing git hooks when the last git hook is disabled.
  • When trunk configuration is invalid, the errors are now presented as diagnostics instead of an error message.
  • Trunk now respects the environment variable
    XDG_CACHE_HOME
    when downloading and installing tools.
  • You can now
    trunk init
    outside a git repo by passing
    --force
    .
  • Trunk now merges all
    plugin.yaml
    found in plugins, allowing self-contained linter directories.
🔧 Fix:
  • Local plugin development ....
  • --jobs
    now works properly with
    --ci
  • TFLint
    configuration now correctly allows exit code 1, without causing errors in Trunk.