Skip to content

Commit d9ad1b9

Browse files
Fix: resolve Go module zip error by renaming VERSION to VERSION.txt
- Rename root VERSION file to VERSION.txt to avoid case-insensitive collision with version/ directory - Update Makefile.common and RELEASE.md to reference VERSION.txt - Fixes go: create zip: version/info.go: case-insensitive file name collision: 'VERSION' and 'version'
1 parent b63ce83 commit d9ad1b9

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ common-docker-publish: $(PUBLISH_DOCKER_ARCHS)
231231
$(PUBLISH_DOCKER_ARCHS): common-docker-publish-%:
232232
docker push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(SANITIZED_DOCKER_IMAGE_TAG)"
233233

234-
DOCKER_MAJOR_VERSION_TAG = $(firstword $(subst ., ,$(shell cat VERSION)))
234+
DOCKER_MAJOR_VERSION_TAG = $(firstword $(subst ., ,$(shell cat VERSION.txt)))
235235
.PHONY: common-docker-tag-latest $(TAG_DOCKER_ARCHS)
236236
common-docker-tag-latest: $(TAG_DOCKER_ARCHS)
237237
$(TAG_DOCKER_ARCHS): common-docker-tag-latest-%:

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Make sure the release is ready to go, with an updated changelog including notice
1919

2020
Here are the basic steps:
2121

22-
1. Update VERSION, applying the next logical version number, without any `v` prefix (e.g. `0.53.0`).
22+
1. Update VERSION.txt, applying the next logical version number, without any `v` prefix (e.g. `0.53.0`).
2323
2. Update CHANGELOG.md, applying the new version number (this time including the `v` prefix, e.g. `v0.53.0`) and date to the changes listed under ``## main / unreleased`, and commit those changes to the main branch.
2424
2. Use GitHub's release feature via [this link](https://github.com/prometheus/prometheus/releases/new) to apply a new tag. The tag name must be prefixed with a `v` e.g. `v0.53.0` and then use the "Generate release notes" button to generate the release notes automagically ✨. No need to create a discussion or mark it a pre-release, please do make sure it is marked as the latest release.
2525

File renamed without changes.

0 commit comments

Comments
 (0)