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

explode with target path fails if target path is the same name as the package name #2779

Open
avdland opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@avdland
Copy link

avdland commented Nov 29, 2024

Describe the bug

I'm trying to download a generic package from Artifactory, and then extract it into a directory as follows:
jf rt dl --explode --flat <our-repository>/parent-folder/mypkg/mypkg-1.0.0.tar.gz ./mypkg/
Unfortunately this fails, it tries to extract the .tar.gz archive from the working directory, instead of the target directory where it has downloaded the file (./mypkg/mypkg-1.0.0.tar.gz).
After some experimenting, it does work if the package name (mypkg) is NOT the same as the target directory.
If I use a different target path (ie. ./mypkg2/), then it works, or I need to specify the full path (ie. /tmp/mypkg/ or $(pwd)/mypkg/).

Tried both v2.63.0 and v2.72.1 of the JFrog-CLI.

Current behavior

it fails to extract the package

Reproduction steps

Download packageA into directory packageA and tell JFrog-CLI to extract it.

Expected behavior

It extracts the file from where it has downloaded the file.

JFrog CLI version

2.72.1

Operating system type and version

Ubuntu 22

JFrog Artifactory version

No response

JFrog Xray version

No response

@avdland avdland added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant