pin
The proto pin <tool> <version>
command will pin a version (or alias) of a tool. By default it will
pin to a ./.prototools
file in the current directory. This version will be used when attempting to
detect a version.
$ proto pin go 1.20
When the --global
option is passed, the version will be pinned globally in ~/.proto/.prototools
.
This version will be used as a global fallback when attempting to detect a version.
$ proto pin go 1.20 --global
Arguments
<tool>
- Type of tool.<version>
- Version of tool.
Options
--global
- Pin to the global~/.proto/.prototools
instead of the local./.prototools
.--resolve
- Resolve the version to a fully-qualified semantic version before pinning.