From feb727accbccd42cd5dfca484e5d75c33f619db9 Mon Sep 17 00:00:00 2001 From: bukowa <38087302+bukowa@users.noreply.github.com> Date: Sat, 24 Apr 2021 15:32:46 +0200 Subject: [PATCH 1/2] userCurrent for unsupported GOOS --- user_other.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 user_other.go diff --git a/user_other.go b/user_other.go new file mode 100644 index 00000000..f9316da5 --- /dev/null +++ b/user_other.go @@ -0,0 +1,14 @@ +// Package pq is a pure Go Postgres driver for the database/sql package. + +// +build js android hurd illumos zos + +package pq + +import ( + "os" + "os/user" +) + +func userCurrent() (string, error) { + return "", ErrCouldNotDetectUsername +} From 6ed3b8ac03dffde67cfa129c8b553e960e9795e0 Mon Sep 17 00:00:00 2001 From: bukowa <38087302+bukowa@users.noreply.github.com> Date: Sat, 24 Apr 2021 15:43:27 +0200 Subject: [PATCH 2/2] rm unused imports --- user_other.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/user_other.go b/user_other.go index f9316da5..f1c33134 100644 --- a/user_other.go +++ b/user_other.go @@ -4,11 +4,6 @@ package pq -import ( - "os" - "os/user" -) - func userCurrent() (string, error) { return "", ErrCouldNotDetectUsername }