github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/get_tilde.txt (about)

     1  # Paths containing windows short names should be rejected before attempting to fetch.
     2  ! go get example.com/longna~1.dir/thing
     3  stderr 'trailing tilde and digits'
     4  ! go get example.com/longna~1/thing
     5  stderr 'trailing tilde and digits'
     6  ! go get example.com/~9999999/thing
     7  stderr 'trailing tilde and digits'
     8  
     9  # A path containing an element that is just a tilde, or a tilde followed by non-digits,
    10  # should attempt to resolve.
    11  ! go get example.com/~glenda/notfound
    12  ! stderr 'trailing tilde and digits'
    13  stderr 'unrecognized import path'
    14  
    15  ! go get example.com/~glenda2/notfound
    16  ! stderr 'trailing tilde and digits'
    17  stderr 'unrecognized import path'
    18  
    19  ! go get example.com/~/notfound
    20  ! stderr 'trailing tilde and digits'
    21  stderr 'unrecognized import path'