https://pulumi.com logo
Title
w

white-airport-48392

03/10/2020, 10:05 AM
@broad-dog-22463 Think you can hep me with this ?
b

broad-dog-22463

03/10/2020, 10:39 AM
Hi @white-airport-48392 - what’s the issue you are facing?
w

white-airport-48392

03/10/2020, 10:50 AM
I am trying to run the basic integration test section in the blog post that I'd linked , that is
package test

import (
    "os"
    "path"
    "testing"

    "<http://github.com/pulumi/pulumi/pkg/testing/integration|github.com/pulumi/pulumi/pkg/testing/integration>"
)

func TestExamples(t *testing.T) {
    awsRegion := os.Getenv("AWS_REGION")
    if awsRegion == "" {
    awsRegion = "us-west-1"
    }
    cwd, _ := os.Getwd()
    integration.ProgramTest(t, &integration.ProgramTestOptions{
    Quick:       true,
    SkipRefresh: true,
    Dir:         path.Join(cwd, "..", "..", "aws-js-s3-folder"),
    Config: map[string]string{
        "aws:region": awsRegion,
    },
    })
}
When I run
go test .
I get the below
# <http://gopkg.in/src-d/go-git.v4/plumbing/transport/ssh|gopkg.in/src-d/go-git.v4/plumbing/transport/ssh>
../../go/src/gopkg.in/src-d/go-git.v4/plumbing/transport/ssh/common.go:147:15: undefined: proxy.Dial
b

broad-dog-22463

03/10/2020, 10:52 AM
Mmmhhhh id need to look as I’ve not looked at the go testing capabilities
Should be ok though
w

worried-raincoat-8829

03/10/2020, 10:55 AM
I might be able to help out with this 🙂
w

white-airport-48392

03/10/2020, 11:02 AM
@broad-dog-22463 that's ok @worried-raincoat-8829 thanks 🙂 So I'd already tried
go get -u -v
in ~/go/src/golang.org/x/net/proxy
to no avail
w

worried-raincoat-8829

03/10/2020, 11:10 AM
Are you in GOPATH or module mode?
w

white-airport-48392

03/10/2020, 11:13 AM
GOPATH mode
w

worried-raincoat-8829

03/10/2020, 11:29 AM
I would move outside GOPATH and set GO111MODULE=on explicitly, and try
go mod download
and see if that helps
w

white-airport-48392

03/10/2020, 3:09 PM
Ahh , thanks , that did the trick 🙂 Thanks @worried-raincoat-8829 PS : Had to fix azure/autorest ambigous imports issue and had to install yarn(mandatory for some reason?) A note in the docs would help folks
b

broad-dog-22463

03/10/2020, 3:14 PM
Hi @white-airport-48392 - glad that @worried-raincoat-8829 was able to help here - we are close to merging Go module support which will make things better for The dependencies and we will add more docs / examples in how to do this
❤️ 1
w

white-airport-48392

03/11/2020, 5:16 AM
Sounds good @broad-dog-22463, Thank you