diff --git a/examples/go/go.mod b/examples/go/go.mod index a0e6288..09d2147 100644 --- a/examples/go/go.mod +++ b/examples/go/go.mod @@ -2,4 +2,4 @@ module kitup-example-go go 1.23 -require github.com/lathe-cli/kitup/go v0.1.3 +require github.com/lathe-cli/kitup/go v0.1.4 diff --git a/go.work.sum b/go.work.sum index 9fc6cf3..5bb27c5 100644 --- a/go.work.sum +++ b/go.work.sum @@ -1 +1 @@ -github.com/lathe-cli/kitup/go v0.1.3/go.mod h1:dZgJDmFRKjaFBZyaP1qlzOB9IEafnf1/ai4KX4hMA4c= +github.com/lathe-cli/kitup/go v0.1.4/go.mod h1:dZgJDmFRKjaFBZyaP1qlzOB9IEafnf1/ai4KX4hMA4c= diff --git a/scripts/prepare-release.mjs b/scripts/prepare-release.mjs index 9f10fbd..d5a1bfa 100755 --- a/scripts/prepare-release.mjs +++ b/scripts/prepare-release.mjs @@ -26,6 +26,8 @@ const bump = positional[0]; const packagePath = "ts/package.json"; const cargoPath = "rust/Cargo.toml"; const goCobraModPath = "go-cobra/go.mod"; +const exampleGoModPath = "examples/go/go.mod"; +const goWorkSumPath = "go.work.sum"; const rustLockPath = "rust/Cargo.lock"; const exampleRustLockPath = "examples/rust/Cargo.lock"; const pythonPackagePath = "python/pyproject.toml"; @@ -42,6 +44,8 @@ const changedFiles = [ rustLockPath, exampleRustLockPath, goCobraModPath, + exampleGoModPath, + goWorkSumPath, pythonPackagePath, pythonLockPath, examplePythonLockPath, @@ -60,11 +64,13 @@ replaceOne( /^version = "([^"]+)"$/m, `version = "${nextVersion}"`, ); -replaceOne( - goCobraModPath, - /(github\.com\/lathe-cli\/kitup\/go\s+)v\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/, - `$1${tag}`, -); +for (const path of [goCobraModPath, exampleGoModPath]) { + replaceOne( + path, + /(github\.com\/lathe-cli\/kitup\/go\s+)v\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?/, + `$1${tag}`, + ); +} if (dryRun) { console.log(`Would create branch: ${branch}`);