Skip to content
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

Document the Go module release system (prefixed tags) #422

Merged

Conversation

pklaschka
Copy link
Member

Go modules defined in a subdirectory need release tags prefixed with the subdirectory name in order to be recognized [1].
Based on us storing our Go module in the backend-go subdirectory of the repo, we therefore need tags prefixed with backend-go/[release-version].
For v1.0.0-alpha.4 (due to caching problems), this was verified to work with the tag backend-go/v1.0.0-goalpha.4, which was found by pkg.go.dev [2].

This commit documents this knowledge (for now inside the Go package README.md), until a more formal release workflow documentation / automation gets established.

Go modules defined in a subdirectory need release tags prefixed with the subdirectory name in order to be recognized [1].
Based on us storing our Go module in the `backend-go` subdirectory of the repo, we therefore need tags prefixed with `backend-go/[release-version]`.
For `v1.0.0-alpha.4` (due to caching problems), this was verified to work with the tag `backend-go/v1.0.0-goalpha.4`, which was found by pkg.go.dev [2].

This commit documents this knowledge (for now inside the Go package `README.md`), until a more formal release workflow documentation / automation gets established.

* [1] https://web.archive.org/web/20240127035037/https://go.dev/ref/mod#vcs-version
* [2] https://pkg.go.dev/github.com/wuespace/telestion/[email protected]
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@pklaschka pklaschka self-assigned this Feb 3, 2024
@pklaschka pklaschka added 📕 documentation Improvements or additions to documentation 🌷 enhancement New feature or request labels Feb 3, 2024 — with Graphite App
Copy link
Member

@cb0s cb0s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

@pklaschka pklaschka merged commit 1196031 into main Feb 13, 2024
17 checks passed
@pklaschka pklaschka deleted the 02-03-Document_the_Go_module_release_system_prefixed_tags_ branch February 13, 2024 20:30
Copy link
Member Author

Merge activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📕 documentation Improvements or additions to documentation 🌷 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants