File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/konfig-cli/src/commands Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' konfig-cli ' : patch
3+ ---
4+
5+ support --tolerateRepublish flag for go in konfig publish
Original file line number Diff line number Diff line change @@ -467,6 +467,7 @@ export default class Publish extends Command {
467467 'File already exists' , // pypi
468468 'does not allow updating artifact' , // maven
469469 'already exists and cannot be modified' , // nuget
470+ `tag 'v${ generatorConfig . version } ' already exists` // go
470471 ]
471472
472473 const handleCommandResult = async ( {
@@ -479,7 +480,7 @@ export default class Publish extends Command {
479480 if ( shellResult . code === 0 )
480481 CliUx . ux . log ( `Command "${ command } " succeeded` )
481482 else if (
482- shellResult . code === 1 &&
483+ shellResult . code !== 0 &&
483484 flags . tolerateRepublish &&
484485 ( republishErrorMessages . some ( ( message ) =>
485486 shellResult . stderr . includes ( message )
You can’t perform that action at this time.
0 commit comments