-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for NuGet Curation Audit #159
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please make sure you are sync with dev branch.
commands/curation/curationaudit.go
Outdated
id = strings.TrimPrefix(id, "nuget://") | ||
allParts := strings.Split(id, ":") | ||
if len(allParts) != 2 { | ||
return | ||
} | ||
name = allParts[0] | ||
version = allParts[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be replaced with SplitComponentId
in utils
commands/curation/curationaudit.go
Outdated
name = allParts[0] | ||
version = allParts[1] | ||
|
||
downloadUrls = append(downloadUrls, strings.TrimSuffix(artiUrl, "/")+"/api/nuget/v3/"+repo+"/registration-semver2/Download/"+strings.ToLower(name)+"/"+version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
downloadUrls = append(downloadUrls, strings.TrimSuffix(artiUrl, "/")+"/api/nuget/v3/"+repo+"/registration-semver2/Download/"+strings.ToLower(name)+"/"+version) | |
func toNugetDownloadUrl(artifactoryUrl, repo, compName, compVersion string) string { | |
return fmt.Sprintf("%s/api/nuget/v3/%s/registration-semver2/Download/%s/%s", strings.TrimSuffix(artifactoryUrl, "/"), repo, strings.ToLower(compName), compVersion) | |
} | |
downloadUrls = append(downloadUrls, toNugetDownloadUrl(artUrl, repo, name, version)) |
can be extracted to func
go.mod
Outdated
@@ -118,6 +118,6 @@ require ( | |||
|
|||
// replace github.com/jfrog/jfrog-client-go => github.com/jfrog/jfrog-client-go dev | |||
|
|||
// replace github.com/jfrog/build-info-go => github.com/jfrog/build-info-go dev | |||
replace github.com/jfrog/build-info-go => github.com/igorz-jf/build-info-go v1.8.9-0.20240827110047-985682a6e584 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be changed to point to dev
dev
branch.go vet ./...
.go fmt ./...
.Depends on:
Add support for NuGet Curation Audit