aboutsummaryrefslogtreecommitdiff
path: root/Earthfile
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-19 13:19:08 -0500
committerXe Iaso <me@xeiaso.net>2025-01-19 13:19:08 -0500
commit7d4966f904485a3e18227bf607ae67753e18860c (patch)
treea0b0765cba68559fd7f8ebafd125433314593a2b /Earthfile
parent0c247a794cc33dd6a4fee45c943e0e289758080f (diff)
downloadx-7d4966f904485a3e18227bf607ae67753e18860c.tar.xz
x-7d4966f904485a3e18227bf607ae67753e18860c.zip
embed version better?
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'Earthfile')
-rw-r--r--Earthfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Earthfile b/Earthfile
index 7ef0c64..5002c36 100644
--- a/Earthfile
+++ b/Earthfile
@@ -26,9 +26,8 @@ deps:
everything:
FROM +deps
- ARG VERSION=no-version-error
-
COPY . .
+ ARG VERSION=$(git describe --tags --always --dirty)
RUN mkdir -p bin
RUN --mount=type=cache,target=/root/.cache GOBIN=$(pwd)/bin go install -ldflags="-X within.website/x.Version="${VERSION} ./...