Skip to content

Commit

Permalink
remove old comments (revert accidental changes meant for separate PR).
Browse files Browse the repository at this point in the history
  • Loading branch information
bhamail committed Jun 2, 2022
1 parent 9c5e4c2 commit 644c909
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
package packages

import (
"fmt"
"github.com/sonatype-nexus-community/nancy/types"
"strings"

"github.com/sonatype-nexus-community/nancy/types"
)

type Mod struct {
Expand All @@ -32,14 +32,8 @@ func (m Mod) ExtractPurlsFromManifest() (purls []string) {
if len(s.Version) > 0 { // There must be a version we can use
// OSS Index no likey v before version, IQ does though, comment left so I will never forget.
// go-sona-types library now takes care of querying both ossi and iq with reformatted purls as needed (to v or not to v).
//version := strings.Replace(s.Version, "v", "", -1)
//version = strings.Replace(version, "+incompatible", "", -1)

version := strings.Replace(s.Version, "+incompatible", "", -1)

fmt.Printf("original version: %s\n", s.Version)
fmt.Printf("fixed version: %s\n", version)

version := strings.Replace(s.Version, "v", "", -1)
version = strings.Replace(version, "+incompatible", "", -1)
var purl = "pkg:" + convertGopkgNameToPurl(s.Name) + "@" + version
purls = append(purls, purl)
}
Expand Down

0 comments on commit 644c909

Please sign in to comment.