Text file src/cmd/go/testdata/script/get_insecure_env.txt

     1  [!net] skip
     2  [!exec:git] skip
     3  
     4  # GOPATH: Set up
     5  env GO111MODULE=off
     6  
     7  # GOPATH: Try go get -d of HTTP-only repo (should fail).
     8  ! go get -d insecure.go-get-issue-15410.appspot.com/pkg/p
     9  
    10  # GOPATH: Try again with invalid GOINSECURE (should fail).
    11  env GOINSECURE=insecure.go-get-issue-15410.appspot.com/pkg/q
    12  ! go get -d insecure.go-get-issue-15410.appspot.com/pkg/p
    13  
    14  # GOPATH: Try with correct GOINSECURE (should succeed).
    15  env GOINSECURE=insecure.go-get-issue-15410.appspot.com/pkg/p
    16  go get -d insecure.go-get-issue-15410.appspot.com/pkg/p
    17  
    18  # GOPATH: Try updating without GOINSECURE (should fail).
    19  env GOINSECURE=
    20  ! go get -d -u -f insecure.go-get-issue-15410.appspot.com/pkg/p
    21  
    22  # GOPATH: Try updating with GOINSECURE glob (should succeed).
    23  env GOINSECURE=*.go-get-*.appspot.com
    24  go get -d -u -f insecure.go-get-issue-15410.appspot.com/pkg/p
    25  
    26  # GOPATH: Try updating with GOINSECURE base URL (should succeed).
    27  env GOINSECURE=insecure.go-get-issue-15410.appspot.com
    28  go get -d -u -f insecure.go-get-issue-15410.appspot.com/pkg/p
    29  
    30  

View as plain text