cli icon indicating copy to clipboard operation
cli copied to clipboard

`lando update` always shows lando/cli as update available

Open justclint opened this issue 9 months ago • 7 comments

Not sure if this issue belongs here or in lando/lando repo but just thought Id start here.

Lando version: v3.21.0-beta.18

When running lando update and completing update, lando/cli still shows as needs to update. Ive tried updating many times but it just always says update available.

Ive included a screenshot to illustrate.

Screenshot 2024-05-02 at 9 28 07 AM

justclint avatar May 07 '24 15:05 justclint

I can confirm this happens with v3.21.0-beta.18 too.

uberhacker avatar May 07 '24 17:05 uberhacker

Same here. It gets to 100% download, but never completes the install (checkmark missing)

CleanShot 2024-05-07 at 15 20 07@2x

square360-george avatar May 07 '24 19:05 square360-george

If this is happening its because you aren't actually running the correct CLI likely because an older version of lando is ahead in your PATH. Try the following stuff to verify

start by opening a new terminal.

# which lando is running
which lando

# this should report the "older" version eg not beta.18
lando version --component @lando/cli

# remove the older lando
sudo rm -rf /path/from/which/lando

# verify the new one is being used
which lando
lando version --component @lando/cli

If that all works you should be good. For more detail: https://docs.lando.dev/cli/guides/adding-lando-2-path.html

pirog avatar May 09 '24 16:05 pirog

Thanks. This started me on the correct path to fix. Turns out it was not a path issue. The permissions on the cache for the files in the /Users/person/Library/Caches/lando directory were somehow messed up. I deleted all files in that directory, and the latest @lando/cli installed without issue.

square360-george avatar May 10 '24 16:05 square360-george

Thanks, after removing older path to lando /usr/local/bin/lando, then reinstalling, which now is in /User/myusername/.lando/bin/lando, the cli updated successfully and now on beta.20.

justclint avatar May 22 '24 14:05 justclint

This happened to me when updating to the release v3.21.0 version cli. It looks like it may have considered v3.21.0 to be older than v3.21.0-beta.6.

I used the cached version mentioned here by running this from inside my home folder: cp Library/Caches/lando/v3.21.0/bin/lando /usr/local/bin/.

This copied the downloaded version over to my path folder and then lando version --component @lando/cli showed the correct, updated version.

GeoJunkie avatar May 29 '24 20:05 GeoJunkie

Ran into this again when trying to update cli to v3.21.0 from v3.21.0-beta.

Only solution that seems to work for me is to just reinstall lando.

/bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

justclint avatar Jun 13 '24 18:06 justclint