Improved update message
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.3k
- Forks
- 116
- Avg merge
- 12h 34m
- Merged PRs (30d)
- 19
Description
I just upgraded to Julia 1.9.1, and noticed this message took up a fair bit of space:
Add this directory to the system PATH to make the command available in your shell.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Creating symlink julia-1.9 for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-1.9 added in /home/tec/.julia/juliaup/bin/julia-1.9. Add this directory to the system PATH to make the command available in your shell.
Creating symlink julia-release for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-release added in /home/tec/.julia/juliaup/bin/julia-release. Add this directory to the system PATH to make the command available in your shell.
Creating symlink julia-beta for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-beta added in /home/tec/.julia/juliaup/bin/julia-beta. Add this directory to the system PATH to make the command available in your shell.
It occurs to me that it should be pretty trivial to check if the Juliaup bin directory is already on PATH (as is the case on my system) and omit the message when it's not needed.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Creating symlink julia-1.9 for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-1.9 added in /home/tec/.julia/juliaup/bin/julia-1.9.
Creating symlink julia-release for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-release added in /home/tec/.julia/juliaup/bin/julia-release.
Creating symlink julia-beta for Julia 1.9.1+0.x64.linux.gnu.
Symlink julia-beta added in /home/tec/.julia/juliaup/bin/julia-beta.
For updating in particular, I think the output could be cleaned up further, for instance
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated julia-1.9 symlink to point to Julia 1.9.1+0.x64.linux.gnu.
Updated julia-release to point to Julia 1.9.1+0.x64.linux.gnu.
Updated julia-beta symlink to point to 1.9.1+0.x64.linux.gnu.
You could even include the old release information, e.g.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated julia-1.9 symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
Updated julia-release symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
Updated julia-beta symlink (Julia 1.9.1+0.x64.linux.gnu → Julia 1.9.1+0.x64.linux.gnu).
If you wanted to go the extra mile, you could even consolidate multiple symlinks updated to the same release, e.g.
~$ juliaup update
Installing Julia 1.9.1+0.x64.linux.gnu
Updated three symlinks (Julia 1.9.1+0.x64.linux.gnu → 1.9.0+0.x64.linux.gnu):
• julia-1.9
• julia-release
• julia-beta
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the juliaup update command and the code that creates symlinks and prints their status. Determine the intended output format and whether the Juliaup bin directory is on PATH; done means avoiding redundant PATH guidance and presenting update results in the chosen concise format.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100