Skip to content

v1.1.3

Choose a tag to compare

@github-actions github-actions released this 12 Aug 21:24
· 26 commits to main since this release
c12e439

Install

Pick your platform on the website,
or take a file below. Every download is listed in SHA256SUMS.txt.

Already running it? It updates itself: open the window and choose Update now,
or run gcloud-dot upgrade.

What changed

1.1.3: resolve the command through its symlink before deciding who owns it

Homebrew puts gcloud-dot on PATH as a link into the app bundle. The updater
asked its question of the link rather than of the files an upgrade would
replace, and got a different answer depending on the architecture.

On an Intel Mac the link is /usr/local/bin/gcloud-dot, which matched a rule
meant for Linux system prefixes, so gcloud-dot upgrade answered an ordinary
cask install with "sudo apt install", on a machine with no apt.

On Apple Silicon it is /opt/homebrew/bin/gcloud-dot, which matched nothing and
fell through to self managed. That is the worse of the two: the app would have
replaced a bundle Homebrew owns, leaving brew describing a version no longer on
disk, which is the exact failure this whole design exists to prevent. It went
unnoticed because every test so far invoked the binary inside the bundle by its
full path, where the question does not arise.

Resolving the executable through its symlinks answers for the bundle, and the
Caskroom check then finds it on both architectures. The system prefix rule is
now Linux only as well, since there is no dpkg on macOS and /usr/local is where
Intel Homebrew lives.

Found on an Intel iMac. Nothing on an arm64 machine would have shown it.

Full changelog: v1.1.2...v1.1.3