datalad: fix changed hash from upstream (#364015)
[NixPkgs.git] / pkgs / by-name / xc / xcaddy / inject_version_info.diff
blob4d87aa6878781664c35a6a40a7560f461634d89e
1 diff --git a/cmd/main.go b/cmd/main.go
2 index ede7cd8..c553140 100644
3 --- a/cmd/main.go
4 +++ b/cmd/main.go
5 @@ -401,8 +401,11 @@ func splitWith(arg string) (module, version, replace string, err error) {
6 return
9 +var customVersion string
11 // xcaddyVersion returns a detailed version string, if available.
12 func xcaddyVersion() string {
13 + return customVersion
14 mod := goModule()
15 ver := mod.Version
16 if mod.Sum != "" {