-
Notifications
You must be signed in to change notification settings - Fork 238
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
Enhance download functionality to support RBV2 #2805
base: dev
Are you sure you want to change the base?
Conversation
004bebb
to
935dc22
Compare
935dc22
to
5eddf64
Compare
artifactory/cli.go
Outdated
if c.IsSet("bundle") { | ||
isRbv2, err = checkRbExistenceInV2(c) | ||
} | ||
//if the command contains --bundle and the bundle found in rbv2, we will download from rbv2 |
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.
What happens when the bundle is not in V2? the download commands continues as it as?
And also this is a generic download code with too much RBV2 references, maybe we should extract some logic to a one liner function to avoid it.
I would move this logic inside the prepareDownloadCommand
.
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.
the logic is:
if we have the same rb-name in both rbv1 and rbv2 - we will take rbv2.
if the cmd dose not contain --bundle , it will remain as it is.
moved the logic.
go.mod
Outdated
@@ -168,6 +168,10 @@ require ( | |||
gopkg.in/yaml.v3 v3.0.1 // indirect | |||
) | |||
|
|||
replace github.com/jfrog/jfrog-cli-core/v2 => ../jfrog-cli-core |
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.
Notice to change replaces before pushing :)
5eddf64
to
eafc54a
Compare
eafc54a
to
7d9b52b
Compare
7d9b52b
to
c28b293
Compare
a94debd
to
4212def
Compare
4212def
to
1f1b004
Compare
dev
branch.go vet ./...
.go fmt ./...
.Enhance download functionality to support RBV2