mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	[Vendor] Switch go-version lib (#12719)
* vendor: switch from "mcuadros/go-version" to "hashicorp/go-version" * Adapt P1 * simplify * fix lint * adapt * fix lint & rm old code * no deadlock * rm RWMutex and check GoVersion only 1-time * Copyright header Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
		@@ -243,7 +243,9 @@ func Config(ctx *context.Context) {
 | 
			
		||||
	ctx.Data["DisableRouterLog"] = setting.DisableRouterLog
 | 
			
		||||
	ctx.Data["RunUser"] = setting.RunUser
 | 
			
		||||
	ctx.Data["RunMode"] = strings.Title(macaron.Env)
 | 
			
		||||
	ctx.Data["GitVersion"], _ = git.BinVersion()
 | 
			
		||||
	if version, err := git.LocalVersion(); err == nil {
 | 
			
		||||
		ctx.Data["GitVersion"] = version.Original()
 | 
			
		||||
	}
 | 
			
		||||
	ctx.Data["RepoRootPath"] = setting.RepoRootPath
 | 
			
		||||
	ctx.Data["CustomRootPath"] = setting.CustomPath
 | 
			
		||||
	ctx.Data["StaticRootPath"] = setting.StaticRootPath
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user