Skip to content

Commit

Permalink
Add original repo for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed Jul 23, 2024
1 parent a1fbe49 commit 2c9189d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions artifactory/services/utils/resultutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (ad *ArtifactDetails) ToBuildInfoArtifact() (buildinfo.Artifact, error) {
// The 'path' property in the build-info should not include the repository. We therefore remove the repository from the path.
if i := strings.Index(ad.ArtifactoryPath, "/"); i != -1 {
artifact.Path = ad.ArtifactoryPath[i+1:]
artifact.OriginalRepo = ad.ArtifactoryPath[0:i]

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Go-Sec

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Go-Sec

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Pretest

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Static-Check

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)) (typecheck)

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Static-Check

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)) (typecheck)

Check failure on line 68 in artifactory/services/utils/resultutils.go

View workflow job for this annotation

GitHub Actions / Static-Check

artifact.OriginalRepo undefined (type entities.Artifact has no field or method OriginalRepo)) (typecheck)
} else {
return artifact, errorutils.CheckErrorf("artifact path:' " + ad.ArtifactoryPath + "' lacks repository name")
}
Expand Down

0 comments on commit 2c9189d

Please sign in to comment.