MCPcopy
hub / github.com/syncthing/syncthing / buildUser

Function buildUser

build.go:1074–1084  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1072}
1073
1074func buildUser() string {
1075 if v := os.Getenv("BUILD_USER"); v != "" {
1076 return v
1077 }
1078
1079 u, err := user.Current()
1080 if err != nil {
1081 return "unknown-user"
1082 }
1083 return strings.Replace(u.Username, " ", "-", -1)
1084}
1085
1086func buildHost() string {
1087 if v := os.Getenv("BUILD_HOST"); v != "" {

Callers 1

ldflagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected