-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: use only major version in the module name
Following on cucumber/messages#107 we can conclude that 1. only major versions should be used in go module files 2. some project will have been released with a major.minor.patch version This change will ensure that when a new major release is made: `module github.com/example/project/v0` will become `module github.com/example/project/v1` and: `module github.com/example/project/v0.X.X` will become: `module github.com/example/project/v0`. This should fix the incorrect module names on the next major version.
- Loading branch information
1 parent
fc50e6f
commit 0bb41d6
Showing
8 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased] | ||
|
||
### Fixed | ||
- This is a test | ||
|
||
## [0.0.1] - 2000-01-01 | ||
|
||
## [0.0.0] - 2000-01-01 | ||
|
||
[Unreleased]: https://github.com/cucumber/polyglot-release/compare/v0.0.1...main | ||
[0.0.1]: https://github.com/cucumber/polyglot-release/compare/v0.0.0...v0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module github.com/example/project/v0.0.1 | ||
|
||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/example/project/v0.0.1 | ||
module github.com/example/project/v0 | ||
|
||
go 1.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# fixture: go-three-digit-version | ||
polyglot-release 1.0.0 |
25 changes: 25 additions & 0 deletions
25
tests/only-release-go-three-digit-version.sh.expected.git-commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
** | ||
Prepare release v1.0.0 | ||
|
||
Created-by: polyglot-release v-develop | ||
|
||
|
||
diff --git a/CHANGELOG.md b/CHANGELOG.md | ||
--- a/CHANGELOG.md | ||
+++ b/CHANGELOG.md | ||
@@ -9,0 +10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). | ||
+## [1.0.0] - 2000-01-01 | ||
@@ -15 +16 @@ and this project adheres to [Semantic Versioning](http://semver.org/). | ||
-## [0.0.0] - 2000-01-01 | ||
+## 0.0.0 - 2000-01-01 | ||
@@ -17 +18,2 @@ and this project adheres to [Semantic Versioning](http://semver.org/). | ||
-[Unreleased]: https://github.com/cucumber/polyglot-release/compare/v0.0.1...main | ||
+[Unreleased]: https://github.com/cucumber/polyglot-release/compare/v1.0.0...main | ||
+[1.0.0]: https://github.com/cucumber/polyglot-release/compare/v0.0.1...main | ||
diff --git a/go.mod b/go.mod | ||
--- a/go.mod | ||
+++ b/go.mod | ||
@@ -1 +1 @@ | ||
-module github.com/example/project/v0.0.1 | ||
+module github.com/example/project/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters