-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to install pkl with Mise #982
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this overall looks pretty good! Added some suggestions.
---- | ||
mise install -g ubi:apple/pkl@latest | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing that mise install
doesn't accept -g
. Also, you can straight up just mise use pkl
/mise use -g pkl
? No need for ubi:apple/
, and seems like this can just be a single step.
Looks like pkl
somes from aqua:
$ mise tool pkl
Backend: aqua:apple/pkl
Description: A configuration as code language with rich validation and
tooling
Installed Versions: 0.25.0 0.25.1 0.26.3 0.27.2
Active Version: 0.27.2
Requested Version: 0.27.2
Config Source: ~/.config/mise/config.toml
Tool Options: [none]
----
---- | |
mise install -g ubi:apple/pkl@latest | |
---- | |
[subs="+attributes"] | |
---- | |
mise use -g pkl@{pkl-version} | |
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the suggestion. Thanks @bioball
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanna update your PR? 😛
With this suggestion, we should also remove the "mise use" section below.
Co-authored-by: Daniel Chao <[email protected]>
Reviewed the suggestions. Thanks @bioball for them 🙏🏼 |
mise use ubi:apple/pkl@latest | ||
---- | ||
endif::[] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also add this for the non-release version of the page.
ifndef::is-release-version[] | |
For instructions, switch to a release version of this page. | |
endif::[] | |
Mise has been popularised as a frontend tool for dev environments. Rails recommends it as a tool to install Ruby.
Mise integrates with multiple installation backends, one of which is the Universal Binary Installer, which can install tools by pulling binaries from their GitHub releases if they follow a certain convention to indicate the target OS and architecture. I tried it against pkl and it works.
This PR documents how to use Mise for those developers who are using it as a tool to manage the dependencies of their projects.
Note
Unlike Homebrew, Mise can scope versions to directories, activating and deactivating them automatically for the user, which is handy for teams seeking determinism in their tools' versions.