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

Foundryup: Error opening archive: Unrecognized archive format #6152

Closed
2 tasks
gnkz opened this issue Oct 27, 2023 · 5 comments · Fixed by #6155
Closed
2 tasks

Foundryup: Error opening archive: Unrecognized archive format #6152

gnkz opened this issue Oct 27, 2023 · 5 comments · Fixed by #6155
Labels
T-bug Type: bug

Comments

@gnkz
Copy link

gnkz commented Oct 27, 2023

Component

Foundryup

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (9fd44a7 2023-10-26T00:23:32.602895000Z)

What command(s) is the bug in?

foundryup

Operating System

macOS (Apple Silicon)

Describe the bug

When running foundryup I'm getting this error

foundryup: installing foundry (version nightly, tag nightly-4422d671b39d11788731f51e67896e305503ea6c)
foundryup: downloading latest forge, cast and anvil
############################################################################################################################################## 100.0%
tar: Error opening archive: Unrecognized archive format
foundryup: downloading manpages
############################################################################################################################################## 100.0%
tar: Error opening archive: Unrecognized archive format
foundryup: installed - forge 0.2.0 (9fd44a7 2023-10-26T00:23:32.602895000Z)
foundryup: installed - cast 0.2.0 (9fd44a7 2023-10-26T00:23:32.882582000Z)
foundryup: installed - anvil 0.2.0 (9fd44a7 2023-10-26T00:23:33.029728000Z)
foundryup: done
@gnkz gnkz added the T-bug Type: bug label Oct 27, 2023
@gakonst gakonst added this to Foundry Oct 27, 2023
@github-project-automation github-project-automation bot moved this to Todo in Foundry Oct 27, 2023
@mattsse
Copy link
Member

mattsse commented Oct 27, 2023

could you try after reinstalling foundryup curl -L https://foundry.paradigm.xyz | bash

@SonOfMosiah
Copy link

Receiving the same error here even after reinstalling foundryup.

  • Also using macOS (Apple Silicon)

  • Default shell is zsh

Is there a documented method to uninstall before reinstalling?

@clabby
Copy link
Contributor

clabby commented Oct 27, 2023

+1, also receiving this error in our CI.

The reason is because foundryup is currently looking for the nightly build in the format of nightly-<SHA>, where the tag is just nightly.

See: https://api.github.com/repos/foundry-rs/foundry/git/refs/tags/nightly
and: https://github.com/foundry-rs/foundry/releases/tag/nightly (notice the assets were updated a few minutes ago, and the commit SHA isn't in the URI path).

Changing the FOUNDRYUP_TAG var on L92 in foundryup to just nightly does the trick.

@SonOfMosiah
Copy link

Was able to fix on my machine with the following commands:

Update Rust
brew upgrade rust

foundryup --branch master

@gosuto-inzasheru
Copy link

ran into this same issue, was solved by reinstalling (curl -L https://foundry.paradigm.xyz | bash)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants