Skip to content

Commit

Permalink
add go.mod
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Dec 23, 2022
1 parent fa1db97 commit be8f72f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/LK4D4/vndr

go 1.17
4 changes: 2 additions & 2 deletions test/vndr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ const (

func setGopath(cmd *exec.Cmd, gopath string) {
for _, env := range os.Environ() {
if strings.HasPrefix(env, "GOPATH=") {
if strings.HasPrefix(env, "GOPATH=") || strings.HasPrefix(env, "GO111MODULE=") {
continue
}
cmd.Env = append(cmd.Env, env)
}
cmd.Env = append(cmd.Env, "GOPATH="+gopath)
cmd.Env = append(cmd.Env, "GOPATH="+gopath, "GO111MODULE=off")
}

func skipOnShort(t *testing.T) {
Expand Down

0 comments on commit be8f72f

Please sign in to comment.