Skip to content

Commit

Permalink
docs(changeset): fix go publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Apr 8, 2024
1 parent 6acdb7d commit 51c0eae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions generator/konfig-dash/.changeset/lovely-cows-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'konfig-cli': patch
---

fix go publish command
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const publishScripts = {
skipTag?: boolean
}) => {
const majorVersion = version.split('.')[0]
const majorVersionStr = parseInt(majorVersion) > 1 ? `/v${majorVersion}` : ''
return [
...(await generateGitTagCommands({
version,
Expand All @@ -146,7 +147,7 @@ const publishScripts = {
isSubmodule,
skipTag,
})),
`GOPROXY=proxy.golang.org go list -m ${gitHost}/${owner}/${repo}/v${majorVersion}@v${version}`,
`GOPROXY=proxy.golang.org go list -m ${gitHost}/${owner}/${repo}${majorVersionStr}@v${version}`,
]
},
npm: async ({
Expand Down

0 comments on commit 51c0eae

Please sign in to comment.