Skip to content

Commit

Permalink
Merge pull request #1093 from 99designs/remove-execabs
Browse files Browse the repository at this point in the history
Remove golang.org/x/sys/execabs
  • Loading branch information
mtibben authored Dec 19, 2022
2 parents 8ea0b72 + be060e8 commit 64b6314
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cli/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"
"net/http"
"os"
osexec "os/exec"
"os/signal"
"runtime"
"strings"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/99designs/keyring"
"github.com/alecthomas/kingpin"
"github.com/aws/aws-sdk-go-v2/aws"
osexec "golang.org/x/sys/execabs"
)

type ExecCommandInput struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ require (
github.com/aws/aws-sdk-go-v2/service/sts v1.17.7
github.com/google/go-cmp v0.5.9
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
golang.org/x/sys v0.3.0
golang.org/x/term v0.3.0
gopkg.in/ini.v1 v1.67.0
)
Expand All @@ -34,4 +33,5 @@ require (
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect
github.com/mtibben/percent v0.2.1 // indirect
golang.org/x/sys v0.3.0 // indirect
)
3 changes: 1 addition & 2 deletions prompt/kdialog.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package prompt

import (
"os/exec"
"strings"

exec "golang.org/x/sys/execabs"
)

func KDialogMfaPrompt(mfaSerial string) (string, error) {
Expand Down
3 changes: 1 addition & 2 deletions prompt/passotp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"fmt"
"log"
"os"
"os/exec"
"strings"

exec "golang.org/x/sys/execabs"
)

// PassOTPProvider uses the pass otp extension to generate a OATH-TOTP token
Expand Down
3 changes: 1 addition & 2 deletions prompt/ykman.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"fmt"
"log"
"os"
"os/exec"
"strings"

exec "golang.org/x/sys/execabs"
)

// YkmanProvider runs ykman to generate a OATH-TOTP token from the Yubikey device
Expand Down
3 changes: 1 addition & 2 deletions prompt/zenity.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package prompt

import (
"os/exec"
"strings"

exec "golang.org/x/sys/execabs"
)

func ZenityMfaPrompt(mfaSerial string) (string, error) {
Expand Down
3 changes: 1 addition & 2 deletions server/ec2alias_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ package server

import (
"fmt"
"os/exec"
"strings"

exec "golang.org/x/sys/execabs"
)

var alreadyRegisteredLocalised = []string{
Expand Down
3 changes: 1 addition & 2 deletions server/ec2proxy_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (
"errors"
"log"
"os"
"os/exec"
"time"

exec "golang.org/x/sys/execabs"
)

// StartEc2EndpointProxyServerProcess starts a `aws-vault proxy` process
Expand Down
3 changes: 1 addition & 2 deletions vault/assumerolewithwebidentityprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import (
"io/ioutil"
"log"
"os"
"os/exec"
"runtime"
"time"

exec "golang.org/x/sys/execabs"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/sts"
ststypes "github.com/aws/aws-sdk-go-v2/service/sts/types"
Expand Down

0 comments on commit 64b6314

Please sign in to comment.