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

Package Manager Setup command (Npm Pnpm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman Maven Gradle) #2738

Open
wants to merge 91 commits into
base: dev
Choose a base branch
from

Conversation

sverdlov93
Copy link
Contributor

@sverdlov93 sverdlov93 commented Oct 25, 2024

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

Screen.Recording.2025-01-06.at.19.46.11.mov
image image image image

PR Description

Title

Add PackageManagerLoginCommand for Configuring Package Managers in JFrog CLI

Description

This PR introduces the PackageManagerLoginCommand, a unified command for configuring package managers to use JFrog Artifactory. It enables registry setup and authentication across various project types, automatically handling tool-specific settings based on the selected project.

Interactivity Modes

  • Interactive Mode: Allows users to interactively select the package manager and repository.
  • Non-Interactive Mode: Supports providing the package manager as an argument and repository and project (if needed) through flags.

Supported Package Managers

  • npm: Configures registry and authentication in the .npmrc file.
  • Pnpm: Configures registry and authentication in the .npmrc file.
  • Yarn: Sets up registry and authentication in the .yarnrc or .yarnrc.yml file.
  • Pip: Configures PyPI repository URL in the pip.conf file.
  • Pipenv: Sets the global index URL in the pip.conf file.
  • Poetry: Manages repository and authentication in the pyproject.toml file.
  • Go: Configures the GOPROXY (persistent) environment variable to use Artifactory.
  • NuGet: Adds repositories and authentication in the NuGet.config file.
  • dotnet: Configures repositories and authentication in the NuGet.config file.

Supported Auth Types

  • Token-based, Basic (username/password), and Anonymous.

Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 changed the title Npm/Yarn login command Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm, Yarn, Pip, Pipenv, Poetry, Go, Nuget, Dotnet, Docker, Podman) Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman`) Nov 20, 2024
@sverdlov93 sverdlov93 changed the title Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman`) Package Manager SetMeUp Interactive command (Npm Yarn Pip Pipenv Poetry Go Nuget Dotnet Docker Podman) Nov 20, 2024
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
Signed-off-by: Michael Sverdlov <[email protected]>
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 29, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 29, 2025
Signed-off-by: Michael Sverdlov <[email protected]>
# Conflicts:
#	artifactory/cli.go
#	buildtools/cli.go
#	go.mod
#	go.sum
Signed-off-by: Michael Sverdlov <[email protected]>
Signed-off-by: Michael Sverdlov <[email protected]>
@sverdlov93 sverdlov93 added the safe to test Approve running integration tests on a pull request label Jan 30, 2025
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Jan 30, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants