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

feat(ci): add support for build-time flavors in Cargo.toml #333

Merged

Conversation

TheButlah
Copy link
Collaborator

No description provided.

@TheButlah TheButlah marked this pull request as ready for review December 19, 2024 21:20
@TheButlah TheButlah enabled auto-merge (squash) December 19, 2024 21:21
tmp = package.get("metadata") or {}
tmp = tmp.get("orb") or {}
flavors = tmp.get("flavors") or {}
if flavors == {}:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: here and below probably more pythonic is if not flavors


def find_flavored_crates(*, workspace_crates):
def predicate(package):
tmp = package.get("metadata") or {}
Copy link
Contributor

Choose a reason for hiding this comment

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

also nit:

tmp = package.get("metadata", {}).get("orb", {})
flavors = tmp.get("flavors")

@TheButlah TheButlah disabled auto-merge December 19, 2024 22:28
@TheButlah TheButlah force-pushed the ryanbutler-orbs-233-implement-flavors-in-orb-softwares-ci branch from 312fbd9 to 1f6b41c Compare December 19, 2024 22:32
@TheButlah TheButlah enabled auto-merge (squash) December 19, 2024 22:33
@TheButlah TheButlah force-pushed the ryanbutler-orbs-233-implement-flavors-in-orb-softwares-ci branch from 1f6b41c to b03698b Compare December 19, 2024 23:48
@TheButlah TheButlah force-pushed the ryanbutler-orbs-233-implement-flavors-in-orb-softwares-ci branch from b03698b to 8216402 Compare December 19, 2024 23:53
@TheButlah TheButlah merged commit 9001e2b into main Dec 19, 2024
13 checks passed
@TheButlah TheButlah deleted the ryanbutler-orbs-233-implement-flavors-in-orb-softwares-ci branch December 19, 2024 23:57
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