Skip to content

Added logic for adding python script by embed package#395

Merged
naveenku-jfrog merged 10 commits intojfrog:mainfrom
naveenku-jfrog:fix/Update-logic-for-adding-python-script-in-go-binary-through-embed-package
Mar 17, 2026
Merged

Added logic for adding python script by embed package#395
naveenku-jfrog merged 10 commits intojfrog:mainfrom
naveenku-jfrog:fix/Update-logic-for-adding-python-script-in-go-binary-through-embed-package

Conversation

@naveenku-jfrog
Copy link
Copy Markdown
Collaborator

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

What: Added logic for adding python script by embed package
WHy: Huggingface download and upload scripts are not added in jfrog-cli binaries.
Testing: Done, by sharing jfrog-cli with changes and running it on the teammates's system

@naveenku-jfrog naveenku-jfrog added bug Something isn't working safe to test Approve running integration tests on a pull request labels Mar 12, 2026
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@naveenku-jfrog naveenku-jfrog requested a review from bhanurp March 12, 2026 10:23
return err
}
defer func(path string) {
err = os.RemoveAll(path)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: to make it more clear since outer block of defer is already using err.

Suggested change
err = os.RemoveAll(path)
removeErr := os.RemoveAll(path)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed it.

"github.com/jfrog/jfrog-client-go/utils/log"
)

const DATASET = "dataset"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I coudn't find where is this used.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed it.

if err != nil {
return nil, err
}
if latestRevision == "" {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does adding a warn log help here? otherwise it is silent return

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed it.

@github-actions
Copy link
Copy Markdown
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@naveenku-jfrog naveenku-jfrog merged commit 3c1abbb into jfrog:main Mar 17, 2026
11 checks passed
@naveenku-jfrog naveenku-jfrog deleted the fix/Update-logic-for-adding-python-script-in-go-binary-through-embed-package branch March 17, 2026 07:00
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

Successfully merging this pull request may close these issues.

2 participants