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

Allow cluster_pack to handle several unzipped pexes in the same directory #123

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

jcuquemelle
Copy link
Contributor

No description provided.

if len(pex_files) == 1:
return pex_files[0]

pex_file = next((x for x in pex_files if pex_dir.endswith(x.split(".zip")[0])), None)

Choose a reason for hiding this comment

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

Selecting the first .pex.zip available here, but why the first and not another?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In fact we select the one that has the same name as pex_dir. I made the assumption it was unique, but it might not be the case actually, as I dont get an exact match, but only a endswith, so we could actually get false matches.

I'll fix this

@jcuquemelle jcuquemelle merged commit 6b9b9b6 into master Sep 6, 2024
6 checks passed
@jcuquemelle jcuquemelle deleted the allow_several_zipped_pexes branch September 6, 2024 07:46
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.

2 participants