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

     1  [!buildmode:plugin] skip
     2  [short] skip
     3  [!cgo] skip '-buildmode=plugin requires external linking'
     4  
     5  # This test has problems when run on darwin, when using a more
     6  # contemporary Xcode version that is unfriendly to reproducible builds
     7  # (see issue #64947 for the gory details).
     8  [GOOS:darwin] skip
     9  
    10  go build -trimpath -buildvcs=false -buildmode=plugin -o a.so main.go
    11  go build -trimpath -buildvcs=false -buildmode=plugin -o b.so main.go
    12  cmp -q a.so b.so
    13  
    14  -- main.go --
    15  package main
    16  
    17  func main() {}
    18  

View as plain text