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

fix: Fix panic in fuelup download #635

Merged
merged 1 commit into from
Jun 19, 2024
Merged

fix: Fix panic in fuelup download #635

merged 1 commit into from
Jun 19, 2024

Conversation

sdankel
Copy link
Member

@sdankel sdankel commented Jun 19, 2024

Closes #634

The problem is that BTreeMap index accession with [] doesn't return a result or option, it just panics if it's not there.

It would be good to have a lint to require us to use get() instead of index access, to avoid panics like this: #636

@sdankel sdankel requested a review from a team June 19, 2024 17:15
Copy link
Member

@kayagokalp kayagokalp left a comment

Choose a reason for hiding this comment

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

Realized that nightly macos x86 builds are failing and missing from nightly entries https://github.com/FuelLabs/fuelup/blob/gh-pages/channel-fuel-nightly.toml, so anyone using nightly channel from x86 mac os should have an issue but this will be makin sure that we have a nice error!

@sdankel sdankel merged commit d2137f9 into master Jun 19, 2024
16 checks passed
@sdankel sdankel deleted the sophie/634 branch June 19, 2024 20:47
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.

Panic in fuelup "no entry found for key"
2 participants