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(resolve): prefer official binaries #1741

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Jun 13, 2024

This is an alternative idea to solve #1721.

It makes much more sense to me to prefer official binaries (i.e. ones resolved from an "earlier strategy") with a secondary target (e.g. musl instead of gnu on linux) over binaries from a later strategy (quickinstall).

I have only quickly rummaged through the source code and confirmed it works with installing jj-cli from the official release page instead of quickinstall, I don't know if this impacts something else.

@ilyagr
Copy link

ilyagr commented Jun 13, 2024

Nice! I can't judge whether this is acceptable for binstall, but it certainly would elegantly solve our immediate problem.

Copy link
Member

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Nice code, thank you!

I thought about this and thought it is harder than expected, but turns out just changing order will work!

@NobodyXu
Copy link
Member

@ilyagr Can you update the e2e-tests/live.sh to include jj for this?

@senekor
Copy link
Contributor Author

senekor commented Jun 13, 2024

@NobodyXu I guess you meant me? 🙂 I added the test 👍

@senekor
Copy link
Contributor Author

senekor commented Jun 13, 2024

Some CI failures:

Received status code 401 Unauthorized, will wait for 120s and retry

I got similar errors locally, but was able to fix them by exporting a GitHub personal access token, so I assumed it's a rate limiting thing 🤔

@NobodyXu NobodyXu merged commit 250814f into cargo-bins:main Jun 13, 2024
21 of 25 checks passed
@NobodyXu
Copy link
Member

Some CI failures:

Received status code 401 Unauthorized, will wait for 120s and retry

I got similar errors locally, but was able to fix them by exporting a GitHub personal access token, so I assumed it's a rate limiting thing 🤔

Turns out it's because github forbids actions from accessing secrets, since you are not a collaborator.

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.

3 participants