diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-10-26 11:16:13 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-10-27 03:46:04 +0300 |
commit | 1977fb4f1fc1e379688e13b58050111f79b33e84 (patch) | |
tree | 2f65fb21644913e80f6a49212173614bce4a4c0b /internal/version | |
parent | b533703022fbfc4d21f338527a972cb6d1fbeb06 (diff) |
version: Remove unused module version
We're compiling the Go module version of the Gitaly package into the
code. This was used in the past to locate the correct set of auxiliary
binaries like `gitaly-git2go-v15`. But since we have started to package
those binaries into the main `gitaly` executable we don't need to tell
apart different module versions anymore. We have thus removed the last
user of `version.GetModuleVersion()` in 1ba0ce586 (Hardcode module
version in git2go binary name variable, 2022-06-28).
Drop the infrastructure to expose the module version.
Diffstat (limited to 'internal/version')
-rw-r--r-- | internal/version/gitaly_version.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/version/gitaly_version.go b/internal/version/gitaly_version.go index c2754175b..2a829f6e9 100644 --- a/internal/version/gitaly_version.go +++ b/internal/version/gitaly_version.go @@ -5,9 +5,8 @@ import ( ) var ( - version string - buildtime string - moduleVersion string + version string + buildtime string ) // GetVersionString returns a standard version header @@ -24,8 +23,3 @@ func GetVersion() string { func GetBuildTime() string { return buildtime } - -// GetModuleVersion returns the version of the module, like v13 or v20. -func GetModuleVersion() string { - return moduleVersion -} |