Skip to content

Conversation

@jhoward-lm
Copy link
Contributor

Description

This PR implements the link subcommand.

Miscellaneous

  • VSCode snippet to generate testify suite

Closes #81

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
chore:
- exclude `cobra.*Arg` from `mnd` linter and refactor

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@jhoward-lm jhoward-lm self-assigned this Nov 23, 2024
@jhoward-lm jhoward-lm added the enhancement New feature or request label Nov 23, 2024
@jhoward-lm jhoward-lm added this to the v0.5 milestone Nov 23, 2024
Copy link
Member

@ashearin ashearin left a comment

Choose a reason for hiding this comment

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

Still need to mess with it a bit, only thing I'm not seeing that I'd expect is updates to documentation

@ashearin
Copy link
Member

ashearin commented Nov 24, 2024

I guess there is something else, are we adding e2e tests for this cmd with this PR or create a follow on issue to do that?

@ashearin
Copy link
Member

Outside of the scope of this task, but would it make sense to have a flag for bomctl list <sbom-id> to list the nodes of that document, maybe just the name and native id? Potentially have to add a filter flag as well since some of these documents are quite long. Just an idea. (Speaking about base list cmd specifically, not bomctl link list)

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@jhoward-lm
Copy link
Contributor Author

I guess there is something else, are we adding e2e tests for this cmd with this PR or create a follow on issue to do that?

I would imagine as part of this one

@idunbarh
Copy link
Member

idunbarh commented Dec 4, 2024

From a UX perspective, how does one find the nodeID?

In the SBOM Linking Docs we talk about using partial PURLs to identify components. I would push for something like this to improve the UX.

…link-feature

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@ghost
Copy link

ghost commented Dec 12, 2024

Minder Vulnerability Report ✅

Minder analyzed this PR and found it does not add any new vulnerable dependencies.

Vulnerability scan of 0d7cf310:

  • 🐞 vulnerable packages: 0
  • 🛠 fixes available for: 0

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
…link-feature

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
refactor:
- sliceutil.isTruthy logic
- update golangci-lint config

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
…link-feature

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@jhoward-lm jhoward-lm marked this pull request as ready for review December 19, 2024 19:45
@jhoward-lm jhoward-lm requested a review from a team as a code owner December 19, 2024 19:45
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@lmphil
Copy link
Contributor

lmphil commented Dec 19, 2024

Looks good. Only missing changes to the README for the new command.

Signed-off-by: Jonathan Howard <jonathan.w.howard@lmco.com>
@jhoward-lm
Copy link
Contributor Author

Looks good. Only missing changes to the README for the new command.

@lmphil README updated

@jhoward-lm jhoward-lm merged commit 8ceaaa1 into bomctl:main Dec 19, 2024
8 checks passed
@jhoward-lm jhoward-lm deleted the 81-sbom-link-feature branch December 19, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

SBOM "link" feature

5 participants