Expose hermetic tools to shell
complete
Gary Justin
There are a handful of solutions out there for creating hermetic development evironments - docker, bazel, devenv.sh, asdf, nvm and others.
With Trunk's ability to declare your environment for the purposes of linting and formatting, it doesn't feel like much of a stretch to allow engineers to utilize those same tools for other development tasks and to use trunk's config as the source of truth for a project instead of having to declare versions in multiple tools.
I would love the ability to add the current repository's toolchains to my PATH or have them be exposed through a CLI command like
trunk exec ...
.Eli Schleifer
complete
This feature has now shipped.
Add the following to your trunk.yaml to get automatic path management and exposure of your tools.
cli:
shell_hooks:
enforce: true
https://docs.trunk.io/check/tools
Sam Lijin
in progress
We've started working on this :)