Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements standardized versioning as first proposed in grafana/agent#6100. A new file called
VERSION
at the root of the repository denotes what semantic version (with av
prefix) to report builds as.This helps consistently identify running versions of Alloy, even if they come from the main branch.
The
VERSION
file always reports what version will be released. From the context of the main branch, this is the next major/minor release, and from the context of a release branch, this is the version that the release branch tracks (including the patch version). Due to this, theVERSION
file is expected to be updated in the main branch following the creation of a release branch, as that indicates a new release is being worked on in main.The
VERSION
file is ignored in two scenarios with descending precedence:RELEASE_TAG
environment variable is set (e.g., when Drone is publishing a release from a Git tag event)v
(e.g., when locally producing a build against a tag).In all other cases, the
VERSION
file is used, and the prerelease is set todevel
with the current commit added as a SHA.