github.com/rogpeppe/go-internal@v1.12.1-0.20240509064211-c8567cf8e95f/cmd/testscript/testdata/noproxy.txt (about)

     1  # With no .gomodproxy supporting files, we use the GOPROXY from
     2  # the environment.
     3  # Note that Go 1.21 started quoting with single quotes in "go env",
     4  # where older versions used double quotes.
     5  env GOPROXY=0.1.2.3
     6  unquote file.txt
     7  testscript -v file.txt
     8  
     9  -- file.txt --
    10  >go env
    11  >[!windows] stdout '^GOPROXY=[''"]0.1.2.3[''"]$'
    12  >[windows] stdout '^set GOPROXY=0.1.2.3$'