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

Avoid incorrect triple match for substrings #250

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Avoid incorrect triple match for substrings #250

merged 1 commit into from
Apr 16, 2024

Conversation

charliermarsh
Copy link
Member

Summary

Given an artifact like cpython-3.8.19-x86_64-pc-windows-msvc-shared-pgo-20240401T1106.tar.gz, we were matching against the triple x86_64-pc-windows-msvc (rather than x86_64-pc-windows-msvc-shared); so the release code then assumed that the install suffix was shared-pgo rather than pgo, and failed to align the assets.

This should fix both of the issues described in #244, since the hard-float armv7 triples are also prefixes of the non-hard-float variants (armv7-unknown-linux-gnueabihf vs. armv7-unknown-linux-gnueabi).

Test Plan

Ran just release with these local changes (skipping uploads); verified that no missing-file errors were raised.

Copy link
Collaborator

@indygreg indygreg left a comment

Choose a reason for hiding this comment

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

Good catch!

@indygreg indygreg merged commit 7071802 into main Apr 16, 2024
476 checks passed
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