Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'unix' condition #169

Merged
merged 2 commits into from Jul 28, 2022
Merged

Add 'unix' condition #169

merged 2 commits into from Jul 28, 2022

Commits on Jul 28, 2022

  1. imports: add 'UnixOS' list of Unix-like systems

    From Go 1.19, the build constraint 'unix' proposed in golang/go#20322 is
    satisfied by any sufficiently Unix-like value of GOOS, as defined by
    src/go/build/syslist.go. This commit adds a 'UnixOS' list containing the
    values of GOOS that would satisfy the 'unix' constraint in Go 1.19.
    
    Co-authored-by: Paul Jolly <paul@myitcv.io>
    bitfield and myitcv committed Jul 28, 2022
    Copy the full SHA
    866b55a View commit details
    Browse the repository at this point in the history
  2. testscript: add 'unix' condition

    From Go 1.19, the build constraint 'unix' proposed in golang/go#20322 is
    satisfied by any sufficiently Unix-like value of GOOS, as defined by
    src/go/build/syslist.go. This commit adds a predefined 'unix' condition
    with the same meaning, available for use in test scripts. The condition
    is satisfied if the target GOOS is one of the list of Unix-like systems
    defined in 'imports.UnixOS'.
    
    Fixes rogpeppe#166.
    
    Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
    bitfield and mvdan committed Jul 28, 2022
    Copy the full SHA
    8518849 View commit details
    Browse the repository at this point in the history