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: wrongly packaging child bundles on MacOS #827

Closed
wants to merge 4 commits into from
Closed

fix: wrongly packaging child bundles on MacOS #827

wants to merge 4 commits into from

Conversation

IGassmann
Copy link
Contributor

macOS's pkgbuild look for valid components in sub-directories when using the --root flag. This cause the build process to mark some files in a project to be processed by pkgbuild and breaks the resulting CLI.

On my CLI project https://github.com/IGassmann/web-img-optimizer pkgbuild would process Chrome which exists in the npm dependency puppeteer. Due to that, puppeteer wouldn't work anymore since Chrome was modified by pkgbuild.

To avoid that, pkgbuild needs to be passed an empty configuration file. It will then not look for valid component in the sub-directories of the project to process them, and will ship the whole directory root as it is.

Here's the man page of pkgbuild.

@IGassmann
Copy link
Contributor Author

Looks like there's an issue with CircleCI pipelines.

CleanShot 2022-02-10 at 10 04 33@2x

@rannn505
Copy link
Contributor

Looks like there's an issue with CircleCI pipelines.

CleanShot 2022-02-10 at 10 04 33@2x

same for me

@IGassmann
Copy link
Contributor Author

@mshanemc @mdonnalley I've fixed merge conflicts. You're free to review now :)

@mdonnalley
Copy link
Contributor

@IGassmann thanks for the PR

We recently switched from CircleCI to Github Actions. Looks like the actions aren't running for any PRs that were open when we made the switch. If it's not a problem, could you open a new PR so that we can get the tests running on your changes? Thanks!

@IGassmann IGassmann closed this Sep 27, 2022
@IGassmann
Copy link
Contributor Author

@mdonnalley sounds good. Here's the new PR: #971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants