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

     1  [short] skip
     2  [!cgo] skip '-buildmode=c-shared requires external linking'
     3  [!buildmode:c-shared] stop
     4  
     5  env GO111MODULE=on
     6  
     7  go get rsc.io/fortune
     8  go build -buildmode=c-shared -o external.so rsc.io/fortune
     9  go version external.so
    10  stdout '^external.so: .+'
    11  go version -m external.so
    12  stdout '^\tpath\trsc.io/fortune'
    13  stdout '^\tmod\trsc.io/fortune\tv1.0.0'
    14  
    15  -- go.mod --
    16  module m
    17  
    18  -- empty.go --
    19  package main
    20  func main(){}
    21  

View as plain text