-
Notifications
You must be signed in to change notification settings - Fork 78
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
testscript: add 'unix' condition? #166
Comments
For sure - want to send a PR? |
bitfield
added a commit
to bitfield/go-internal
that referenced
this issue
Jul 24, 2022
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.
Merged
With pleasure, thank you @mvdan. |
bitfield
added a commit
to bitfield/go-internal
that referenced
this issue
Jul 28, 2022
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
added a commit
to bitfield/go-internal
that referenced
this issue
Jul 28, 2022
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>
mvdan
added a commit
that referenced
this issue
Jul 28, 2022
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 #166. Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that Go considers the
unix
pseudo-tag to be satisfied by any sufficiently Unixy system, following a successful campaign by myself (and, to a lesser extent, Rob Pike)—shouldtestscript
's imported copy ofbuild.go
be updated to support this as a condition in scripts?Then I could write:
The text was updated successfully, but these errors were encountered: