Skip to content

Conversation

@gernot-h
Copy link
Collaborator

@gernot-h gernot-h commented Jul 1, 2025

This fixes #158 and adds a corresponding test case (or better slightly modifies an existing test case to test this 😉).

Additionally, this PR contains two commits with unrelated doc fixes I stumbled over when looking into the PURL code. Let me know if I should move them to a separate PR!

gernot-h added 3 commits July 1, 2025 15:35
MapBom::update_bom_item() relied on an outdated (?) field
(`RepositoryId`) in the internal BOM data structure, which was not
populated for releases retrieved from SW360, so the PURL from the input
BOM was not replaced by SW360 data. Now rely on the result from
get_purl_from_match() which correctly looks up the purl in RepositoryId
as well as in `ExteralIds`.

Fixes #158
I accidentally added a doscstring change in Commit efaa5a5 from a
planned change which will likely be done differently. Remove it.
This old logic was already removed in CaPyCli 2.8.1, commit 90b1b7b.
@tngraf tngraf merged commit 633e275 into main Jul 2, 2025
6 checks passed
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 7, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 9, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 9, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 9, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 9, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
@gernot-h gernot-h deleted the fix-bom-map-purl branch July 10, 2025 08:04
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 11, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 23, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 23, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 23, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 23, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
gernot-h added a commit to sw360/capywfa that referenced this pull request Jul 29, 2025
Newer CaPyCli versions update purl on mapping, see See sw360/capycli#159
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.

bom map: output BOM contains PURL from input BOM, not from SW360 entry

3 participants