omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Omarchy update script is looking for latest tag

Open notliad opened this issue 3 months ago • 2 comments

System details

i5-1135G7, Omarchy 3.8.4

What's wrong?

The omarchy-update-available script is looking for the latest omarchy tag instead of release.

line 5:

latest_tag=$(git -C "$OMARCHY_PATH" ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1)

This can lead people to update to a non-stable system.

notliad avatar Aug 12 '26 12:08 notliad

Don't quote me 100% on this one but as far as I understand it, this is not quite completely correct.

While your cause is correct and it does point at the latest tag, the consequence isn't quite right. The update only ever runs git pull on the branch you already have, it never checks out a tag. v4.0.0-beta3 lives on quattro, so a pull on master can't reach it. So it's more a "a higher version number exists somewhere" light than an actual update waiting. It's misleading, but harmless.

Worth flagging though: the default branch is already quattro, so fresh clones land there and get beta code from a plain pull. That's probably where the real danger is.

But we'll let a pro confirm that.

dotnetemmanuel avatar Aug 12 '26 13:08 dotnetemmanuel

This is correct. It won't pull in any wrong updates.

Also, this is all going away with Quattro which moves to real packages. So there won't be a git checkout.

Thanks for the report anyway ✌️

dhh avatar Aug 12 '26 13:08 dhh