Skip to content

Commit 8c27589

Browse files
committed
docs(changeset): support --tolerateRepublish flag for go in konfig publish
1 parent 5e37bd1 commit 8c27589

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'konfig-cli': patch
3+
---
4+
5+
support --tolerateRepublish flag for go in konfig publish

generator/konfig-dash/packages/konfig-cli/src/commands/publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)