feat: add helm to go mod (#497)

This commit is contained in:
naison
2025-03-30 11:52:21 +08:00
committed by GitHub
parent a030dc582b
commit d191c927f4
2687 changed files with 190853 additions and 78174 deletions

25
vendor/github.com/lib/pq/user_posix.go generated vendored Normal file
View File

@@ -0,0 +1,25 @@
// Package pq is a pure Go Postgres driver for the database/sql package.
//go:build aix || darwin || dragonfly || freebsd || (linux && !android) || nacl || netbsd || openbsd || plan9 || solaris || rumprun || illumos
// +build aix darwin dragonfly freebsd linux,!android nacl netbsd openbsd plan9 solaris rumprun illumos
package pq
import (
"os"
"os/user"
)
func userCurrent() (string, error) {
u, err := user.Current()
if err == nil {
return u.Username, nil
}
name := os.Getenv("USER")
if name != "" {
return name, nil
}
return "", ErrCouldNotDetectUsername
}