Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: cmd/go/testdata/script

     1  [!net] skip
     2  [!exec:git] skip
     3  env GO111MODULE=off
     4  
     5  # Clone the repo via HTTPS manually.
     6  exec git clone -q https://github.com/golang/example github.com/golang/example
     7  
     8  # Configure the repo to use a protocol unknown to cmd/go
     9  # that still actually works.
    10  cd github.com/golang/example
    11  exec git remote set-url origin xyz://github.com/golang/example
    12  exec git config --local url.https://github.com/.insteadOf xyz://github.com/
    13  
    14  go get -d -u -f github.com/golang/example/hello
    15  

View as plain text