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

     1  # For reproducibility and easier cross-compilation,
     2  # nothing in std is supposed to use cgo on macOS.
     3  # Check that cgo does not appear as a dependency
     4  # of cmd/go, which imports approximately everything
     5  # in std (certainly everything relevant).
     6  [!GOOS:darwin] skip
     7  go list -deps cmd/go
     8  ! stdout runtime/cgo
     9  
    10  

View as plain text