-
Notifications
You must be signed in to change notification settings - Fork 77
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 a "don't care about success" operator #93
Comments
I have a somewhat pressing need for this - Go 1.15 (master) is making the default I agree that a new field, deprecating the current Something he did there, which we could emulate, is to add an extra
|
I should add - |
I'm assuming the implication of this change for the likes of Agree with your suggestion re modes BTW. |
https://go-review.googlesource.com/c/go/+/223746 is now merged. Maybe this issue can be closed. |
@twpayne it's precisely because it's been merged that we need this issue 😄 - i.e. we need to "keep up to date" with the upstream. |
I had a look at doing this. There's some non-trivial divergence between upstream and this package now. The easiest way to resolve this is to probably copy in from upstream again. The changes are then fairly small, mainly using exported methods instead of private methods. Otherwise, you have to pick through quite a lot of code. However, this will lead to the loss of any changes made to this package. |
I need this again. As an alternative to the
This has the advantage of being backwards-compatible, straightforward to implement, and providing the desired functionality. |
Hi @twpayne, could you implement this yourself as small custom command that is specific to your project? That might then serve as data for what to do about this issue. |
not sure how easy/feasible that'd be but supporting cmd || true would be nice and solve this in more general way? |
I don't think so because the existing implementation of |
FWIW in CUE we did a variation of what @twpayne suggested - just for one command, but it's enough to get us unblocked:
|
Per https://go-review.googlesource.com/c/go/+/223746
However per @rogpeppe on Slack, this would be a backwards incompatible change because the signature of
Params.Cmds
would need to change.Options:
cc @rogpeppe @mvdan
The text was updated successfully, but these errors were encountered: