diff options
Diffstat (limited to 'builder/builder2v1/build_creation_info.go')
-rw-r--r-- | builder/builder2v1/build_creation_info.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/builder/builder2v1/build_creation_info.go b/builder/builder2v1/build_creation_info.go index c838b92..e128fb9 100644 --- a/builder/builder2v1/build_creation_info.go +++ b/builder/builder2v1/build_creation_info.go @@ -5,7 +5,8 @@ package builder2v1 import ( "time" - "github.com/spdx/tools-golang/spdx" + "github.com/spdx/tools-golang/spdx/common" + "github.com/spdx/tools-golang/spdx/v2_1" ) // BuildCreationInfoSection2_1 creates an SPDX Package (version 2.1), returning that @@ -13,9 +14,9 @@ import ( // - creatorType: one of Person, Organization or Tool // - creator: creator string // - testValues: for testing only; call with nil when using in production -func BuildCreationInfoSection2_1(creatorType string, creator string, testValues map[string]string) (*spdx.CreationInfo2_1, error) { +func BuildCreationInfoSection2_1(creatorType string, creator string, testValues map[string]string) (*v2_1.CreationInfo, error) { // build creator slices - creators := []spdx.Creator{ + creators := []common.Creator{ // add builder as a tool { Creator: "github.com/spdx/tools-golang/builder", @@ -35,7 +36,7 @@ func BuildCreationInfoSection2_1(creatorType string, creator string, testValues created = testVal } - ci := &spdx.CreationInfo2_1{ + ci := &v2_1.CreationInfo{ Creators: creators, Created: created, } |