Skip to content

Bug: Forge makes an unnecessary URL request when fetching solc build list.json information  #7440

@sambacha

Description

@sambacha

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (0026488 2024-03-19T00:20:40.934617000Z)

What command(s) is the bug in?

No response

Operating System

None

Describe the bug

Forge makes a request to:

https://github.com/alloy-rs/solc-builds/raw/e4b80d33bc4d015b2fc3583e217fbf248b2014e1/macosx/aarch64/list.json

This hits a 302 re-direct to:

https://raw.githubusercontent.com/alloy-rs/solc-builds/e4b80d33bc4d015b2fc3583e217fbf248b2014e1/macosx/aarch64/list.json

Instead, why not just hit the https://raw.githubusercontent.com domain, instead of hitting github.com first? it will always be the case that this gets redirected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions