jfrog / build-info-go

build-info-go is a Go library and a CLI, which allows generating build-info for a source code project.
https://www.buildinfo.org
Apache License 2.0
64 stars 37 forks source link

Update to 1.7.0 fails #110

Closed Roemer closed 1 year ago

Roemer commented 1 year ago

Describe the bug

I just updated from 1.6.0 to 1.7.0 and now get the following error when I compile my go project:

# github.com/jfrog/build-info-go/entities
C:\Users\...\go\pkg\mod\github.com\jfrog\build-info-go@v1.7.0\entities\buildinfo.go:209:82: cannot use &cdxDepsSlice (value of type *[]cyclonedx.Dependency) as type *[]string in struct literal

Current behavior

Build fails

Reproduction steps

Run go get -u on a project that uses github.com/jfrog/jfrog-client-go which updates build-info-go. Try to build the updated project.

Expected behavior

The build should work.

Operating system type and version

Windows and Linux

Roemer commented 1 year ago

Seems like it is because of an update of github.com/CycloneDX/cyclonedx-go from v0.6.0 to v0.7.0. So maybe this library can be updated for this version.

sverdlov93 commented 1 year ago

Hi @Roemer https://github.com/jfrog/build-info-go/releases/tag/v1.8.0 is released with github.com/CycloneDX/cyclonedx-go@v0.7.0 Looking forward to your feedback on it.