Skip to content

New Feature: Implement package alias to invoke jfrog-cli based on package manager - #3375

Merged
bhanurp merged 61 commits into
jfrog:masterfrom
bhanurp:ghost-frog
Apr 9, 2026
Merged

bhanurp merged 61 commits into
jfrog:masterfrom
bhanurp:ghost-frog

Conversation

@bhanurp

@bhanurp bhanurp commented Feb 27, 2026 •

Copy link
Copy Markdown
Contributor
  • 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 master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

Description

The feature allows transparent interception of package manager commands (e.g., npm, mvn, go) by symlinking or copying the jf binary to these names in a dedicated directory and adding that directory to the PATH.

@bhanurp bhanurp added the new feature Automatically generated release notes label Feb 27, 2026
@bhanurp bhanurp removed the safe to test Approve running integration tests on a pull request label Apr 8, 2026
@bhanurp
bhanurp requested review from a team, agrasth, fluxxBot, itsmeleela, naveenku-jfrog and reshmifrog and removed request for a team April 8, 2026 11:26
@bhanurp bhanurp added the safe to test Approve running integration tests on a pull request label Apr 8, 2026
@bhanurp bhanurp added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 8, 2026
@bhanurp bhanurp added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 9, 2026
@bhanurp
bhanurp enabled auto-merge (squash) April 9, 2026 11:27
@bhanurp
bhanurp disabled auto-merge April 9, 2026 11:50
@bhanurp
bhanurp merged commit f3b3e67 into jfrog:master Apr 9, 2026
81 of 83 checks passed
SierraNL added a commit to SierraNL/jfrog-azure-devops-extension that referenced this pull request Sep 15, 2026
… leak on failure

- minSupportedPackageAliasCliVersion was 2.93.0, but the package-alias
  command doesn't exist until CLI 2.100.0 (jfrog/jfrog-cli#3375, merged
  2026-04-09, first included in tag v2.100.0). Verified by installing
  jf.exe 2.93.0, 2.99.0 and 2.100.0 directly and confirming
  'jf package-alias' is unrecognized on the first two and works on the
  latter. Any CLI in [2.93.0, 2.100.0) was passing the gate and then
  failing with an unrecognized-command error - exactly what the gate was
  meant to prevent.
- setUpPackageAlias() was called before the try/finally in RunTaskCbk, so
  a throw from it (e.g. hitting the bug above, or any package-alias
  install failure) skipped taskDefaultCleanup and leaked the CLI server
  config. Moved the call inside the try block so it's covered by the
  existing catch/finally.

Addresses review comments from agrasth on PR jfrog#652.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

This branch had an error being deployed

1 failed deployment
frogbot — dd32a539 Deployed Apr 8, 2026 by bhanurp via scan-pull-request #3927
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants