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

Allow selecting the target with --target=<TRIPLE> or --all-targets #513

Merged
merged 22 commits into from
Oct 30, 2023

Conversation

Shnatsel
Copy link
Contributor

@Shnatsel Shnatsel commented Oct 27, 2023

Depends on #512, please review that first.

cargo cyclonedx now defaults to the host platform, producing a SBOM for the binary you would get with cargo build --release.

"Cross-compilation" of the SBOM is natively supported with --target=<TRIPLE>, same flag as for cargo build.

The old behavior that includes packages from all targets, even the packages only used on that one funky unikernel, is still available via --all-targets.

Fixes #500

@Shnatsel Shnatsel requested a review from a team as a code owner October 27, 2023 23:39
…thing yet.

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…y working now

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
… exclusive

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
@lfrancke lfrancke mentioned this pull request Oct 28, 2023
Copy link
Contributor

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Same as before: README update missing, otherwise looking good.

I tried it (together with the dependency tree PR as well) and it looks good!

cargo-cyclonedx/src/cli.rs Show resolved Hide resolved
cargo-cyclonedx/src/platform.rs Show resolved Hide resolved
cargo-cyclonedx/src/cli.rs Outdated Show resolved Hide resolved
@Shnatsel
Copy link
Contributor Author

I'm going to round up the README changes before release. README is not neat split into small lines, so I'll run into lots of merge conflicts if I edit it in every PR.

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
…tree`

Signed-off-by: Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>
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.

Allow emitting SBOM for a specific platform
2 participants