Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was introduced by https://cuelang.org/cl/1191581, where the previous range-based logic using `break outer` was replaced by a callback-based logic which could no longer work the same way. The new logic always looped just once, meaning we only cared about the top-level "commands" field existing in at least one _tool.cue file. We don't require the command being run itself to reside in a _tool.cue file as well; that breaks https://cuelang.org/issue/281 for which we have a regression test. Fix the staticcheck warning, which simplifies the logic without changing it at all. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Ic2f1d5bace5902abb5f347ba859dc588cf1149c3 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1206355 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Paul Jolly <paul@myitcv.io>
- Loading branch information