Skip to content

Bug: JFrog OAuth Module: Deprecated --repo-resolve Argument #534

@bjornrobertsson

Description

@bjornrobertsson

I have searched for similar issues!

Issue
The JFrog CLI command in the jfrog-oauth module uses a deprecated argument that is no longer valid in recent versions of the JFrog CLI.

Current code (line 102 in run.sh):

jf mvnc --global --repo-resolve "${REPOSITORY_MAVEN}"

Required update:

jf mvnc --global --repo-resolve-releases "${REPOSITORY_MAVEN}" --repo-resolve-snapshots "${REPOSITORY_MAVEN}"

Affected file: https://github.com/coder/registry/blob/main/registry/coder/modules/jfrog-oauth/run.sh#L102

JFrog CLI Version
The --repo-resolve argument was/may be deprecated in JFrog CLI version (Could be v1 vs v2 artefact) and replaced with separate --repo-resolve-releases and --repo-resolve-snapshots arguments.

This relates to PR #414 - but appears to use old parameters.

The parameter is listed for gradle: https://jfrog.com/help/r/jfrog-applications-and-cli-documentation/package-managers-integration?contentId=jItrlvAYnUQg_nAnQx5rYQ but not mvnc/maven.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions