github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/get_unicode.txt (about) 1 env GO111MODULE=off 2 3 [!exec:git] skip 4 [short] skip 5 6 # Construct a repository that imports a non-ASCII path. 7 cd $WORK/_origin/example.com/unicode 8 exec git init 9 exec git config user.name 'Nameless Gopher' 10 exec git config user.email 'nobody@golang.org' 11 exec git add unicode.go 12 exec git commit -m 'add unicode.go' 13 14 # Clone the repo into GOPATH so that 'go get -u' can find it. 15 mkdir $GOPATH/src/example.com/unicode 16 cd $GOPATH/src/example.com/unicode 17 exec git clone $WORK/_origin/example.com/unicode . 18 19 # Construct the imported repository. 20 cd $WORK/_origin/example.com/испытание 21 exec git init 22 exec git config user.name 'Nameless Gopher' 23 exec git config user.email 'nobody@golang.org' 24 exec git add испытание.go 25 exec git commit -m 'add испытание.go' 26 27 # Clone that repo into GOPATH too. 28 mkdir $GOPATH/src/example.com/испытание 29 cd $GOPATH/src/example.com/испытание 30 exec git clone $WORK/_origin/example.com/испытание . 31 32 # Upgrading the importer should pull from the non-ASCII repo. 33 cd $GOPATH 34 go get -u example.com/unicode 35 36 -- $WORK/_origin/example.com/unicode/unicode.go -- 37 package unicode 38 import _ "example.com/испытание" 39 -- $WORK/_origin/example.com/испытание/испытание.go -- 40 package испытание