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 json output when a bundle does not use submodules #110

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

jepler
Copy link
Member

@jepler jepler commented Dec 19, 2023

Some bundles, such as circuitpython-fonts, don't use submodules to contain their individual libraries.

Change build_bundle_json so that it works correctly if multiple libraries come from the same submodule.

With this change, the generated metadata for circuitpython-fonts contains an entry for every font, not just for one font.

I spot checked the result on the main bundle and it looks sane as well.

@Neradoc I don't know all the reasons that you rolled your own build script for https://github.com/Neradoc/Circuitpython_Keyboard_Layouts but I'm guessing this might have been one of them. Do you have any interest in figuring out what else would need to change to allow you to use circuitpython-build-bundles as well?

Some bundles, such as circuitpython-fonts, don't use submodules to
contain their individual libraries.

Change build_bundle_json so that it works correctly if multiple
libraries come from the same submodule.

With this change, the generated metadata for circuitpython-fonts
contains an entry for every font, not just for one font.
@jepler jepler requested a review from dhalbert December 19, 2023 19:22
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

👍

@dhalbert dhalbert merged commit 152702f into adafruit:main Dec 19, 2023
1 check 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.

2 participants