jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
525 stars 223 forks source link

Error download index-app #1201

Closed gjhofmann closed 3 years ago

gjhofmann commented 3 years ago

Describe the bug When I start an Xray scan, I get the following error message: [Error] read ... /.jfrog/dependencies/xray-indexer/temp: is a directory indexer-app is in the directory ./jfrog/dependencies/xray-indexer/temp and an additional artifact is created: ./jfrog/dependencies/xray-indexer/3.29.0 when I rename the temp-directory to 3.29.0 everything works fine

To Reproduce ./jfrog xr s jar-file

Expected behavior indexer-app should be downloaded in the directory ./jfrog/dependencies/xray-indexer/3.29.0

Screenshots If applicable, add screenshots to help explain your problem.

Versions

Additional context Add any other context about the problem here.

asafgabai commented 3 years ago

@gjhofmann Thanks for reporting this issue. I just opened a PR for fixing it. I'll update here when it's released.

eyalbe4 commented 3 years ago

@gjhofmann - JFrog CLI 2.2.1 with this fix has just been released. Looking forward to your feedback for the fix.

gjhofmann commented 3 years ago

@eyalbe4 Version 2.2.1 solved the problem - the download behaves now as expected - Thanks.

eyalbe4 commented 3 years ago

Thanks for confirming this @gjhofmann and thanks @asafgabai for adding the fix.