github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/get_tilde.txt (about) 1 env GO111MODULE=off 2 [short] skip 3 4 # Paths containing windows short names should be rejected before attempting to fetch. 5 ! go get example.com/longna~1.dir/thing 6 stderr 'trailing tilde and digits' 7 ! go get example.com/longna~1/thing 8 stderr 'trailing tilde and digits' 9 ! go get example.com/~9999999/thing 10 stderr 'trailing tilde and digits' 11 12 # A path containing an element that is just a tilde, or a tilde followed by non-digits, 13 # should attempt to resolve. 14 ! go get example.com/~glenda/notfound 15 ! stderr 'trailing tilde and digits' 16 stderr 'unrecognized import path' 17 18 ! go get example.com/~glenda2/notfound 19 ! stderr 'trailing tilde and digits' 20 stderr 'unrecognized import path' 21 22 ! go get example.com/~/notfound 23 ! stderr 'trailing tilde and digits' 24 stderr 'unrecognized import path'