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

Use binary name when searching for artifacts #1747

Merged
merged 6 commits into from
Jun 14, 2024
Merged

Conversation

tomasol
Copy link
Contributor

@tomasol tomasol commented Jun 13, 2024

When there is a single binary declared in the manifest and it differs from the package name, add it to the list of handles used for pre-built artifact fetching.
Fixes #988

When there is a single binary declared in the manifest and
it differs from the package name, add it to the list of handles
used for pre-built artifact fetching.
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.

Thank you!

Can you add testing to e2e-tests/live.sh?

It can be run locally by

just build

export GITHUB_TOKEN="..." # need github-token becaus e2e-tests install a to s of packages)
just e2e-test-live

crates/binstalk/src/ops/resolve.rs Outdated Show resolved Hide resolved
crates/binstalk/src/ops/resolve.rs Outdated Show resolved Hide resolved
crates/binstalk/src/ops/resolve.rs Outdated Show resolved Hide resolved
Technically it should also check if gh-crate-meta resolver is enabled, but it is unlikely for it to be disabled and overallocating for extra n-target should be fine, it is an improvement over doubling the space allocated if the binary_name is Some.
crates/binstalk/src/ops/resolve.rs Outdated Show resolved Hide resolved
@NobodyXu NobodyXu enabled auto-merge June 14, 2024 04:47
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.

Thank you!

@NobodyXu NobodyXu added this pull request to the merge queue Jun 14, 2024
Merged via the queue into cargo-bins:main with commit dfa230f Jun 14, 2024
23 checks passed
@tomasol
Copy link
Contributor Author

tomasol commented Jun 14, 2024

Thank you for your quick review and overall maintenance!

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.

Crate name chosen over binary name?
2 participants