github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_convert_tsv_insecure.txt (about)

     1  env GO111MODULE=on
     2  
     3  [!net] skip
     4  [!exec:git] skip
     5  
     6  # secure fetch should report insecure warning
     7  cd $WORK/test
     8  go mod init
     9  stderr 'redirected .* to insecure URL'
    10  
    11  # insecure fetch should not
    12  env GOINSECURE=*.golang.org
    13  rm go.mod
    14  go mod init
    15  ! stderr 'redirected .* to insecure URL'
    16  
    17  # insecure fetch invalid path should report insecure warning
    18  env GOINSECURE=foo.golang.org
    19  rm go.mod
    20  go mod init
    21  stderr 'redirected .* to insecure URL'
    22  
    23  -- $WORK/test/dependencies.tsv --
    24  vcs-test.golang.org/insecure/go/insecure	git	6fecd21f7c0c	2019-09-04T18:39:48Z 
    25  
    26  -- $WORK/test/x.go --
    27  package x // import "m"