Skip to content

Fallback to latest version during failed install#6859

Closed
IAmMarcellus wants to merge 3 commits intoblock:mainfrom
IAmMarcellus:fix-install-add-version-fallback
Closed

Fallback to latest version during failed install#6859
IAmMarcellus wants to merge 3 commits intoblock:mainfrom
IAmMarcellus:fix-install-add-version-fallback

Conversation

@IAmMarcellus
Copy link

Summary

Fix for #6858

Installs fail because sometime goose-x86_64-unknown-linux-gnu.tar.bz2 doesn't exist at github.com/block/goose/releases/download/stable but it exists at /goose/releases/download/<version_number>.

Now, if the download fails and a GOOSE_VERSION isn't specified, it will get the latest version from github and retry with that version explicitly. This avoids a failure when the stable tag is missing its download files.

Type of Change

  • Feature
  • [ X] Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Script is working locally for me and there isn't a download file on the stable tag right now.

Related Issues

Relates to #6858

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6334949660

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@IAmMarcellus IAmMarcellus changed the title fallback to latest version Fallback to latest version during failed install Jan 31, 2026
download_cli.sh Outdated
Comment on lines 214 to 218
echo "Error: Failed to download $DOWNLOAD_URL"
exit 1
fi
else
echo "Error: Failed to download $DOWNLOAD_URL"
Copy link

@kravtsun kravtsun Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Are these two error messages the same because the problem is the same?

If not, is that possible to make them different, so that a user could understand the problem more precise?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Fixed

Copy link
Collaborator

@katzdave katzdave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @IAmMarcellus Can you complete the DCO check?

@DOsinga DOsinga mentioned this pull request Feb 17, 2026
@DOsinga
Copy link
Collaborator

DOsinga commented Feb 17, 2026

ported this over so we can merge without the DCO - thanks @IAmMarcellus for taking care of this

@DOsinga DOsinga closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments