Skip to content

docs(changeset): support --tolerateRepublish flag for go in konfig publish #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions generator/konfig-dash/.changeset/forty-papayas-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'konfig-cli': patch
---

support --tolerateRepublish flag for go in konfig publish
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ export default class Publish extends Command {
'File already exists', // pypi
'does not allow updating artifact', // maven
'already exists and cannot be modified', // nuget
`tag 'v${generatorConfig.version}' already exists` // go
]

const handleCommandResult = async ({
Expand All @@ -479,7 +480,7 @@ export default class Publish extends Command {
if (shellResult.code === 0)
CliUx.ux.log(`Command "${command}" succeeded`)
else if (
shellResult.code === 1 &&
shellResult.code !== 0 &&
flags.tolerateRepublish &&
(republishErrorMessages.some((message) =>
shellResult.stderr.includes(message)
Expand Down
Loading