Skip to content

Commit

Permalink
remove support of edit for ft
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Kumar Sahu <[email protected]>
  • Loading branch information
viveksahu26 committed Sep 7, 2024
1 parent 02ec998 commit 29984a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 363 deletions.
212 changes: 0 additions & 212 deletions cmd/edit_dt.go

This file was deleted.

20 changes: 3 additions & 17 deletions pkg/assemble/cdx/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ package cdx

import (
"encoding/base64"
"fmt"
"io"
"log"
"os"
"strings"

Expand Down Expand Up @@ -363,8 +361,7 @@ func (m *merge) hierarchicalMerge() error {
}

func (m *merge) uploadSBOM() error {
fmt.Println("Inside uploadSBOM fn")
defer fmt.Println("Exit uploadSBOM fn")
log := logger.FromContext(*m.settings.Ctx)
dTrackClient, err := dtrack.NewClient(m.settings.Output.Url,
dtrack.WithAPIKey(m.settings.Output.ApiKey), dtrack.WithDebug(false))
if err != nil {
Expand Down Expand Up @@ -395,19 +392,8 @@ func (m *merge) uploadSBOM() error {
}
}

// // Read the local SBOM file
// sbomFilePath := "sbomqs-fossa-dt.cyclonedx.json"
// sbomData, err := os.ReadFile(sbomFilePath)
// if err != nil {
// log.Fatalf("Failed to read SBOM file: %s", err)
// return err
// }
// // Encode the SBOM data to Base64
// encodedBOM := base64.StdEncoding.EncodeToString(sbomData)

dtUpload := dtrack.BOMUploadRequest{
ProjectUUID: &m.settings.Output.UploadProjectID,
BOM: sb.String(),
BOM: sb.String(),
}
encodedBOM := base64.StdEncoding.EncodeToString([]byte(dtUpload.BOM))

Expand All @@ -421,7 +407,7 @@ func (m *merge) uploadSBOM() error {
log.Fatalf("Failed to upload BOM: %s", err)
return err
}
fmt.Println(" BOMUploadToken: ", token)
log.Debugf("bom upload token: %v", token)

return err
}
Expand Down
46 changes: 0 additions & 46 deletions pkg/assemble/interface_test.go

This file was deleted.

88 changes: 0 additions & 88 deletions pkg/dt/edit_dt_interface.go

This file was deleted.

0 comments on commit 29984a8

Please sign in to comment.