Comments (8)
Here is a workaround in shell:
for tool in $(asdf plugin list); do
asdf install "${tool}" latest \
&& asdf global "${tool}" latest \
&& echo "${tool} set globally"
done
You can add a shell alias for this or put it a script on your path
from asdf.
@jrasanen asdf plugin-update --all
might be what you are looking for.
Closing this issue. Please do re-open it if you think it wasn't the appropriate answer you were looking for.
from asdf.
HI @HashNuke, I'm sorry if this has already been implemented, but I guess that the feature that @jrasanen was talking about, and the one that I'm looking for is not about updating plugins, it's about updating every software to it's latest and greatest version.
E.g.:
❯ asdf list
bat
0.21.0
fzf
0.29.0
golang
1.18.2
gradle
7.4.2
hugo
0.99.0
New proposed magical command:
❯ asdf update --all
Updating fzf to latest version: 0.30.0...
Updating gradle to latest version: 7.5-milestone-1...
Updating hugo to latest version: 0.99.1...
All packages updated
...
❯ asdf list
bat
0.21.0
fzf
0.30.0
golang
1.18.2
gradle
7.5-milestone-1
hugo
0.99.1
I could certainly use an update --all
command, or at least a combination of install latest --all
+ asdf global latest --all
.
I mean, I wrote my own combination of scripts to do this, but it would be nice if this functionality could be part of the main CLI, so that people that are only interested in the latest and greatest version of the software can use it as a more traditional package manager.
from asdf.
Hello @jrasanen,
Yes. Suggestions are always welcome :)
Can you share an example use-case for the hooks?
from asdf.
@HashNuke Hi, sorry for the late response. Use case being ability to bump multiple packages to the latest stable.
So maybe this could be two new hooks, 1) a hook for a package retrieving if newer version is available and 2) update.
from asdf.
Looking for this as well, but not sure if it is possible since how do you define latest and greatest? For example if you list java versions you get zulu-jre-javafx-18.30.11
as the latest version but this is actually the latest of zulu-jre-javafx
version of java. If I'm currently using adoptopenjdk-jre
then it would replace it with a version I don't actually want.
I would llike to get adoptopenjdk-jre-18.0.1+10
which is quite high up in the list because it starts with a
🤔
from asdf.
@v3rm0n , for an update all it's certainly trickier, but for java itself, I think that you can use a prefix (e.g., adoptopenjdk-jre
+ latest
).
This would be a way to do it for Java, Python, etc. Find the current prefix + install the latest version with this prefix.
from asdf.
was also looking for something like asdf global all latest
or something, for now I just stuffed the loop from @stealthybox in my upgradeall
function 🤓
from asdf.
Related Issues (20)
- recursive upward search HOT 2
- bug: getting "You have configured asdf to preserve downloaded files" when I don't HOT 6
- Allow running tools from one another without passing `ASDF_DATA_DIR` around
- Add the ability to track which versions are in use HOT 1
- bug: The terminal in VS Code cannot find the ruby version installed by asdf (again) HOT 2
- bug: tool installed in global nodejs are not available in project with a different nodejs version HOT 2
- It is recommended to add a -g parameter to the install command.
- The startup guide doesn't mention how to set the PATH HOT 1
- bug: Sporadic X Plugin Not Installed Errors - ASDF Install
- bug: `No version is set for command shasum` on Mac
- Support version requirements in tool-versions
- bug: ASDF_DEFAULT_TOOL_VERSIONS_FILENAME env variable works so wired HOT 1
- Add command line flag that prevents `asdf install` from ascending to parent directories
- bug: AUR package wants to use python but does not find any preset version
- bug: ASDF_DEBUG: unbound variable HOT 1
- bug: No times executable found for ruby 3.3.0 HOT 1
- Install should have `--local` and `--global` optional flags
- Completion that supports split subcommands(plugin-add -> plugin add)
- Better version management
- bug: always_keep_download has a wrong warning logic HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asdf.