garden self-update fails to select new version
# 🌱|help-and-getting-started
s
On Arch (CachyOS) and only recently (probably since 0.14) I can't self-update without specifying the version:
Copy code
bash
❯ garden self-update
Update Garden

No installation directory specified via --install-dir option. Garden will be re-installed to the current installation directory: /home/rapha/.garden/bin
Checking for target and latest versions...
Current Garden version: 0.14.1
Target Garden version to be installed: undefined
Latest release version: 0.14.1

Downloading version undefined from https://download.garden.io/core/undefined/garden-undefined-linux-amd64.tar.gz...

Could not find version undefined for linux-amd64.
Here are the latest available versions: edge-acorn, edge-bonsai, edge-cedar, 0.14.1, 0.13.57, 0.14.0, 0.13.56, 0.13.55, 0.13.54, 0.13.53, 0.13.52, 0.13.51, 0.13.50
(This also happened before I manually updated:
garden self-update 0.14.1
)
b
Hi @salmon-scientist-57815 thanks for reporting this! I agree it's a bit confusing, you can actually update to the very latest version by running `garden self-update --major`; It's picking the latest version compatible with the current version you have installed, as there are breaking changes between major releases.
s
Hi @big-spring-14945 that is what I did to get to
0.14.0
. However, I had also experienced the issue shown when updating from
0.14.0
to
0.14.1
b
Ah, sorry, now I've seen the
undefined
string in the log output! I've created a github issue for this and we'll have a look: https://github.com/garden-io/garden/issues/7039
3 Views