FuelLabs / fuelup

⛽ The Fuel toolchain installer
https://fuellabs.github.io/fuelup/latest
Apache License 2.0
281 stars 144 forks source link

Extend triple target to everything distributed by forc #667

Closed alfiedotwtf closed 1 month ago

alfiedotwtf commented 1 month ago

Note: this is rebased on top of #666 👹

There are 2 types of downloads:

  1. forc-binaries, which is of the format "{os}_{arch}"
  2. Everything else, which is the standard "{arch}-{vendor}-{os}"

Currently, we only use the "{os}_{arch}" URL if the component is forc, however the forc-binaries tarball contains plugins and executables not defined in the forc component.

This PR extends the "{os}_{arch}" result to everything distributed from forc.

This fixes an issue found while investigating #654.

fuel-service-user commented 1 month ago

LCOV of commit 274463d during CI #2086

Summary coverage rate:
  lines......: 85.7% (2457 of 2868 lines)
  functions..: 46.1% (382 of 829 functions)
  branches...: 63.0% (290 of 460 branches)

Files changed coverage rate: n/a