jcansdale / gpr

A .NET Core tool for working with the GitHub Package Registry
94 stars 13 forks source link

Add --ignore-duplicate flag to avoid build failures on repeated CI builds #115

Open bbourdrez opened 2 years ago

bbourdrez commented 2 years ago

When doing builds from github actions or other CI/CD systems it's often good to not fail on repeated production builds of the same package, so this new flag allows you to tell gpr to succeed when pushing a duplicate version (other than showing the server-provided error in the output). There doesn't seem to be any mocking set up for the network-related parts of the code, so there's no tests.

f2calv commented 1 year ago

The official argument is --skip-duplicate, so I would be inclined to rename --ignore-duplicate to match;

alexrp commented 6 months ago

@jcansdale @bbourdrez any way we can move this one forward? I've found myself needing this a few times now.