Skip to content

Derive Maven version from git describe#794

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:release-version-from-tag
Jun 20, 2026
Merged

Derive Maven version from git describe#794
ktoso merged 1 commit into
swiftlang:mainfrom
ktoso:release-version-from-tag

Conversation

@ktoso

@ktoso ktoso commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

SwiftKitCore and SwiftKitFFM compute their Maven version directly from the current checkout via git describe --tags --always. A checkout on an exact SemVer tag (e.g. 0.4.2) publishes that version; off-tag working trees publish a tag-prefixed identifier such as 0.4.1-52-g8f0d0794, this replaces the hardcoded 1.0-SNAPSHOT we had before.

We'll do -SNAPSHOT once we actually start publishing them nightly though I think...

@ktoso ktoso changed the title Derive version from git describe Derive Maven version from git describe Jun 18, 2026
@ktoso ktoso force-pushed the release-version-from-tag branch 3 times, most recently from fa20d4e to 1e44dce Compare June 20, 2026 05:32
SwiftKitCore and SwiftKitFFM compute their Maven version directly from the
current checkout via `git describe --tags --always`. A checkout on an exact
SemVer tag (e.g. `0.4.2`) publishes that version; off-tag working trees
publish a tag-prefixed identifier such as `0.4.1-52-g8f0d0794`. This replaces
the previous hardcoded `1.0-SNAPSHOT` so Maven coordinates always reflect the
upstream commit a consumer pinned.
@ktoso ktoso force-pushed the release-version-from-tag branch from 1e44dce to 68af3cd Compare June 20, 2026 05:33
@ktoso ktoso merged commit 3e4bf4b into swiftlang:main Jun 20, 2026
41 of 42 checks passed
@ktoso ktoso deleted the release-version-from-tag branch June 20, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant