Add global install option for cargo and add env vars for binaries and directories#223
Open
jackh726 wants to merge 1 commit into
Open
Add global install option for cargo and add env vars for binaries and directories#223jackh726 wants to merge 1 commit into
jackh726 wants to merge 1 commit into
Conversation
nikomatsakis
approved these changes
May 14, 2026
Member
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks cool! I like how this installation infra is shaping up.
Member
nikomatsakis
left a comment
There was a problem hiding this comment.
This looks cool! I like how this installation infra is shaping up.
| executable = "tool" # required for git sources (crates.io is not consulted) | ||
| ``` | ||
|
|
||
| To install into the user's global cargo location (`~/.cargo/bin`) instead of a symposium-managed cache, set `global = true`. No `--root` is passed; `$PATH` is not augmented (the binary is expected to already be on `$PATH`). |
Member
There was a problem hiding this comment.
Should we explain when you might want that? I guess it is intended for cases where the user might want to use the CLI too?
Member
There was a problem hiding this comment.
Do we expect this to change auto-update behavior? (I think no)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Two main things here:
globaloption to installs ofsource = "cargo", where we don't use--rootand instead install into the user's PATHSYMPOSIUM_<name>andSYMPOSIUM_DIR_<name>environment variables for the executable (or script) and the install directory for scripts to be able to useDisclosure questions
AI disclosure.