Skip to content

fix: update code for go-struct-converter release 0.2#289

Merged
kzantow merged 4 commits into
spdx:mainfrom
idiap:fix/adapt-to-go-struct-converter-0.2
Jun 25, 2026
Merged

fix: update code for go-struct-converter release 0.2#289
kzantow merged 4 commits into
spdx:mainfrom
idiap:fix/adapt-to-go-struct-converter-0.2

Conversation

@sgaist

@sgaist sgaist commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

This PR updates the code to adapt to the backward incompatible changes that came with relase 0.2.1 from https://github.com/anchore/go-struct-converter/

Tickets and links

Fixes #288

The release of 0.2.0 of go-struct-converter changed its
API and broke this package.

Update to use the function chains API.

Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
@kzantow

kzantow commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

The full set of changes are in the SPDX 3 branch, all of which except for the v3 related changes are required to support both forwards and backwards conversion: https://github.com/spdx/tools-golang/blob/spdx3/convert/chain.go#L17 To get this PR merged, both forwards and backwards conversion functionality needs to be included. I hadn't been planning on promoting to a full release until the SPDX 3 branch was merged, but I overlooked some changes to our release process that caused this, so if you are able to get to this before me, please just take the SPDX 2 related changes from that branch, or I can push some updates here if you like

sgaist added 2 commits June 25, 2026 16:12
Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
@sgaist sgaist force-pushed the fix/adapt-to-go-struct-converter-0.2 branch from bec30ba to 6b58468 Compare June 25, 2026 14:12
@sgaist

sgaist commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Sure thing !

If there is something else that I can help with, don't hesitate to ask.

Comment thread go.mod Outdated
Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
@sgaist sgaist force-pushed the fix/adapt-to-go-struct-converter-0.2 branch from 3178be8 to 2a5ef9b Compare June 25, 2026 15:13

@kzantow kzantow left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM thanks for the quick fix @sgaist !

@kzantow kzantow merged commit f73711b into spdx:main Jun 25, 2026
6 checks passed
@sgaist sgaist deleted the fix/adapt-to-go-struct-converter-0.2 branch June 26, 2026 05:46
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.

go-struct-converter release 0.2.1 has breaking changes

2 participants