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

spin plugins upgrade -v does not work for latest plugin version #1548

Closed
itowlson opened this issue Jun 1, 2023 · 1 comment
Closed

spin plugins upgrade -v does not work for latest plugin version #1548

itowlson opened this issue Jun 1, 2023 · 1 comment
Assignees
Labels
area/plugins question Further information is requested

Comments

@itowlson
Copy link
Contributor

itowlson commented Jun 1, 2023

$ spin plugins update
Plugin information updated successfully

$ spin plugins list
js2wasm 0.1.0
js2wasm 0.2.0
js2wasm 0.3.0
js2wasm 0.4.0 [installed]
py2wasm 0.1.0 [installed]
py2wasm 0.1.1
py2wasm 0.2.0

$ spin plugins upgrade py2wasm -v 0.2.0
Error: plugin 'py2wasm' not found at expected location /home/ivan/.local/share/spin/plugins/.spin-plugins/manifests/py2wasm/py2wasm@0.2.0.json: No such file or directory (os error 2)

$ ls -1 /home/ivan/.local/share/spin/plugins/.spin-plugins/manifests/py2wasm/
py2wasm@0.1.0.json
py2wasm@0.1.1.json
py2wasm.json        # the culprit!

Why does this matter? Well, maybe it doesn't. If you want the latest version, save yourself some keystrokes and skip the -v. But it is a funny little inconsistency.

(The reason I came across this was planning for what I needed to do if the upgrade badger wanted to seek out the "last compatible" or "last in your major version" versions, rather than just "most recent or nothing." For my own laziness purposes, I was planning to construct the "how to upgrade" instruction to always display the -v. But this behaviour means I would have to construct the command differently for the truly latest version. Which is not a problem, just a quirk.)

@itowlson
Copy link
Contributor Author

itowlson commented Apr 3, 2024

Apparently this got fixed somewhere along the line. Good times

@itowlson itowlson closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/plugins question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

2 participants