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

     1  # golang.org/issue/29591: 'go get' was following plain-HTTP redirects even without -insecure (now replaced by GOINSECURE).
     2  # golang.org/issue/61877: 'go get' would panic in case of an insecure redirect in module mode
     3  
     4  [!git] skip
     5  
     6  env GOPRIVATE=vcs-test.golang.org
     7  
     8  ! go get -d vcs-test.golang.org/insecure/go/insecure
     9  stderr 'redirected .* to insecure URL'
    10  
    11  [short] stop 'builds a git repo'
    12  
    13  env GOINSECURE=vcs-test.golang.org/insecure/go/insecure
    14  go get -d vcs-test.golang.org/insecure/go/insecure
    15  
    16  -- go.mod --
    17  module example
    18  go 1.21
    19  
    20  

View as plain text