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: Zip Deployer crashes when subfolder exist #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Leanny
Copy link

@Leanny Leanny commented Feb 12, 2025

Right now, the zip deployer crashes with an exception when a subfolder exists inside bin or lib. This can easily be checked with

conan install --requires=boost/1.85.0 --deployer=runtime_zip_deploy`

The change add sone unittest with a minimal project that creates a folder inside bin to ensure that it does not crash like the current version does.

@CLAassistant
Copy link

CLAassistant commented Feb 12, 2025

CLA assistant check
All committers have signed the CLA.

if not os.path.isdir(search_dir):
return []
files = []
for f in os.listdir(search_dir):
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if using os.walkdir is a better approach here, but I like the current minimal diff nevertheless

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