<@UHTP242EB> Think you can hep me with this ?
# golang
w
@broad-dog-22463 Think you can hep me with this ?
b
Hi @white-airport-48392 - what’s the issue you are facing?
w
I am trying to run the basic integration test section in the blog post that I'd linked , that is
Copy code
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
Copy code
# <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
Mmmhhhh id need to look as I’ve not looked at the go testing capabilities
Should be ok though
w
I might be able to help out with this 🙂
w
@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
Are you in GOPATH or module mode?
w
GOPATH mode
w
I would move outside GOPATH and set GO111MODULE=on explicitly, and try
go mod download
and see if that helps
w
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
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
Sounds good @broad-dog-22463, Thank you