From 6ae95d754c66e58d404d634e33d4bba9bce8e102 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 2 May 2018 14:05:43 -0700 Subject: [PATCH] agent: use os.Executable --- agent/agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/agent.go b/agent/agent.go index 212672ea9f..fb4d6c4a7a 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -41,7 +41,6 @@ import ( "github.com/hashicorp/memberlist" "github.com/hashicorp/raft" "github.com/hashicorp/serf/serf" - "github.com/kardianos/osext" "github.com/shirou/gopsutil/host" "golang.org/x/net/http2" ) @@ -2112,7 +2111,7 @@ func (a *Agent) RemoveProxy(proxyID string, persist bool) error { func (a *Agent) defaultProxyCommand() ([]string, error) { // Get the path to the current exectuable. This is cached once by the // library so this is effectively just a variable read. - execPath, err := osext.Executable() + execPath, err := os.Executable() if err != nil { return nil, err }