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

Update autopacking to skip shared libs that don't need a pack #13

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

kylewlacy
Copy link
Member

This PR tweaks the brioche-packer autopack subcommand so that, if we try autopacking a shared library but the pack ends up empty (i.e. it has no libraries and therefore doesn't influence the result), then packing will be skipped

For glob patterns, it'll print a "skipped" log message. If the shared library was included explicitly with the paths option, then this should become an error (i.e. it failed to pack an "expected" path)

There's also a new sharedLibrary.allowEmpty config option which, when set, will add the pack anyway

@kylewlacy kylewlacy force-pushed the autopack-skip-empty-shared-libraries branch from 9792dfc to 6b6ea3c Compare September 9, 2024 07:29
@kylewlacy kylewlacy merged commit 4815f00 into main Sep 9, 2024
7 checks passed
@kylewlacy kylewlacy deleted the autopack-skip-empty-shared-libraries branch September 9, 2024 07:33
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.

1 participant