Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

oshratZairi
Copy link
Collaborator

@oshratZairi oshratZairi commented Dec 26, 2024

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

Enhance download functionality to support RBV2

if c.IsSet("bundle") {
isRbv2, err = checkRbExistenceInV2(c)
}
//if the command contains --bundle and the bundle found in rbv2, we will download from rbv2
Copy link
Contributor

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.

@@ -168,6 +168,10 @@ require (
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace github.com/jfrog/jfrog-cli-core/v2 => ../jfrog-cli-core
Copy link
Contributor

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants