mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Get proper GOPATH in trim function (#5744)
Set GOPATH string to empty in build-constants.go Check for both compile time GOPATH and default GOPATH while trimming the file path in the stack trace. Fixes #5741
This commit is contained in:
committed by
Harshavardhana
parent
4d02f9bccf
commit
b87cc3d643
@@ -16,13 +16,11 @@
|
||||
|
||||
package cmd
|
||||
|
||||
import "go/build"
|
||||
|
||||
// DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants
|
||||
// set through ‘buildscripts/gen-ldflags.go’.
|
||||
var (
|
||||
// GOPATH - GOPATH value at the time of build.
|
||||
GOPATH = build.Default.GOPATH
|
||||
GOPATH = ""
|
||||
|
||||
// Go get development tag.
|
||||
goGetTag = "DEVELOPMENT.GOGET"
|
||||
|
||||
Reference in New Issue
Block a user