Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pepicrft
Copy link

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.

Copy link
Contributor

@bioball bioball left a 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.

Comment on lines +98 to +100
----
mise install -g ubi:apple/pkl@latest
----
Copy link
Contributor

@bioball bioball Feb 25, 2025

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]
----
Suggested change
----
mise install -g ubi:apple/pkl@latest
----
[subs="+attributes"]
----
mise use -g pkl@{pkl-version}
----

Copy link
Author

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

Copy link
Contributor

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.

@pepicrft
Copy link
Author

Reviewed the suggestions. Thanks @bioball for them 🙏🏼

mise use ubi:apple/pkl@latest
----
endif::[]

Copy link
Contributor

@bioball bioball Feb 26, 2025

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.

Suggested change
ifndef::is-release-version[]
For instructions, switch to a release version of this page.
endif::[]

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