You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds support for an `@ignore()` attribute to enable a file to be
unconditionally ignored. Unlike `@if` build attributes, a file with an
`@ignore()` attribute is always ignored when calculating dependencies,
for example when running `cue mod tidy`.
We decided against following Go's lead here, which would have been
`@if(ignore)` because there is no existing convention like Go had, and
because this is sufficiently different from regular build tags that it
seems like it justifies another attribute. Also because `@ignore()`
seems to read a bit better than `@if(ignore)`.
Fixes#2962.
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I7ee84cea2ffce6765bd7667feb78c4d44e0254ea
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198249
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
0 commit comments