From bdba0053d27a7f3b549becc6423f0d86a5f09de3 Mon Sep 17 00:00:00 2001 From: Steven van der Vegt Date: Wed, 9 Sep 2026 07:59:49 +0200 Subject: [PATCH] build: make the main module version readable by image scanners Trivy only reads a version from -ldflags when the -X key ends in ".version", so core.GitVersion was ignored and the nuts-node module showed up without a version in Trivy scans of the image. Rename the variable to core.Version (and the Version() func to VersionOrBranch()) so both Trivy and Syft pick it up. Build with -buildvcs=false: the module path has no /v6 suffix, so Go cannot derive the version from the v6.x tags and stamps a pseudo-version (v0.0.0-