From 2195cfce131ee599c71d0c426a7eea70ed52345f Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 23 Oct 2024 16:01:36 +0200 Subject: Inject version with embed instead of build flags The build flags made the basic build and debug calls quite complex and bound this strictly to Git repositories which is a problem if the source code is passed around as tar archive. Embedding this via Go's embed package and a VERSION.txt file makes this way easier. A simple `go build` command is sufficient to build ceres. To make sure the version string is extended by a `-devel` marker and that this marker is removed before a release a RELEASE.md file was added as a checklist for releases. --- VERSION.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 VERSION.txt (limited to 'VERSION.txt') diff --git a/VERSION.txt b/VERSION.txt new file mode 100644 index 0000000..9e39250 --- /dev/null +++ b/VERSION.txt @@ -0,0 +1 @@ +0.4.0-devel -- cgit v1.2.3-70-g09d2