jfrog-client-go
jfrog-client-go copied to clipboard
Archive and explode multiple groups in spec
Is your feature request related to a problem? Please describe. When using file specs to upload as archive, multiple groups can have the same target. Each of these groups might have a different value for the explode option. The value of the first of these groups to appear in the spec determines if the archive will be exploded or not. The current behavior is not what we'd expect the CLI to do.
Describe the solution you'd like to see The groups with the archive flag set to true will be uploaded separately and be exploded, while the other groups will be uploaded in the same archive.
Describe alternatives you've considered If the explode flag is true in at least one of the groups, the archive will be exploded. If, in addition, the flag is set explicitly to false in another group with the same target, then an error will be returned. Another option is to return an error if the value of explode is not the same in all of the groups with the same target.