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

Latest devpod homebrew formula contains incorrect checksum #1586

Open
chris-sterbenz opened this issue Jan 22, 2025 · 2 comments
Open

Latest devpod homebrew formula contains incorrect checksum #1586

chris-sterbenz opened this issue Jan 22, 2025 · 2 comments

Comments

@chris-sterbenz
Copy link

What happened?
The devpod homebrew formula in the latest release contains an incorrect checksum.

❯ brew upgrade devpod
==> Upgrading 1 outdated package:
devpod 0.5.22 -> 0.6.10
==> Upgrading devpod
==> Downloading https://github.com/loft-sh/devpod/releases/download/v0.6.10/DevPod_macos_aarch64.dmg
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/592748160/184ceb41-1bc8-43e8-9ef2-86deed13f0
####################################################################################################################################### 100.0%
==> Purging files for version 0.6.10 of Cask devpod
Error: devpod: SHA256 mismatch
Expected: 4dc295e8f0b34b175e52259e98eaaf382cffb68658b0b65d0a2a8132a806e32f
  Actual: 5235fc466d91de643082a637a41d1997be108a836560be122aa83999d7a2204c
    File: /Users/csterbenz/Library/Caches/Homebrew/downloads/6873e96b981ceb1eb630d63270878d510c29647c96f017f68c316c876efcd488--DevPod_macos_aarch64.dmg
To retry an incomplete download, remove the file above.

Confirmed that retrying after removing the cached file results in the same error.

What did you expect to happen instead?
Checksum should match the dmg, installs the cask.

How can we reproduce the bug? (as minimally and precisely as possible)

From a macos arm environment:

brew reinstall devpod

or

brew upgrade devpod

Local Environment:

  • DevPod Version: 0.6.10
  • Operating System: mac
  • ARCH of the OS: ARM64

Anything else we need to know?

@chris-sterbenz
Copy link
Author

It looks like there may have been some out of order events being triggered here, since 0.6.10 is still marked as pre-release? Should brew be defaulting to install that version instead of 0.6.9 yet?

Also, do you have guidance on immediate remediation? I'm unable to target a specific version of devpod with brew, ie. brew install [email protected]

❯ brew upgrade [email protected]
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
Error: No available formula with the name "[email protected]".

@bkneis bkneis added the macos label Jan 23, 2025
@pascalbreuninger
Copy link
Member

Hey @chris-sterbenz, thanks for raising this issue.
I've messed the pipeline up during the release for v0.6.10 and had to reset it, resulting in a state where some external dependencies already picked up the latest version and some didn't.
Markes v0.6.10 as the latest release now but this doesn't seem to fix the cached checksum.

Let's give cache invalidation a chance although I'm not sure if this is actually applicable with brew. If that doesn't work out we'll cut a new version on monday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants