Skip to content

Commit

Permalink
Remove repo from build-info path (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva authored Dec 30, 2021
1 parent 7d6d021 commit ac1ecc2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions artifactory/services/utils/searchutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package utils
import (
"bufio"
"fmt"
buildinfo "github.com/jfrog/build-info-go/entities"
"io"
"net/http"
"os"
Expand All @@ -13,6 +12,8 @@ import (
"strings"
"sync"

buildinfo "github.com/jfrog/build-info-go/entities"

"github.com/jfrog/jfrog-client-go/utils/version"

"github.com/jfrog/jfrog-client-go/utils/errorutils"
Expand Down Expand Up @@ -367,7 +368,7 @@ func addSeparator(str1, separator, str2 string) string {
}

func (item *ResultItem) ToArtifact() buildinfo.Artifact {
return buildinfo.Artifact{Name: item.Name, Checksum: &buildinfo.Checksum{Sha1: item.Actual_Sha1, Md5: item.Actual_Md5}, Path: path.Join(item.Repo, item.Path, item.Name)}
return buildinfo.Artifact{Name: item.Name, Checksum: &buildinfo.Checksum{Sha1: item.Actual_Sha1, Md5: item.Actual_Md5}, Path: path.Join(item.Path, item.Name)}
}

func (item *ResultItem) ToDependency() buildinfo.Dependency {
Expand Down

0 comments on commit ac1ecc2

Please sign in to comment.