Skip to content

Option for skip duplicate #97

Description

@jasonycw

Currently with dotnet nuget push and nuget push there is an option to skip duplicate

image
image

With gpr push, if duplicate package is found, there will be an error with non-zero exit code.

[ThePackage.1.5.14.nupkg]: Repository url: https://github.com/OWNER/ThePackage. Version: 1.5.14. Size: 39625 bytes.
[ThePackage.1.5.14.nupkg]: Uploading package.
[ThePackage.1.5.14.nupkg]: Error: Version 1.5.14 of "ThePackage" has already been pushed.

This cause docker to fail and exit.

It would be nice if there is an option like dotnet and nuget CLI to skip duplicate or make this as warning instead of an error with non-zero exit code
e.g.

gpr push --api-key $GITHUB_ACCESS_TOKEN "ThePackage.1.5.14.nupkg" --skip-duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions