Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: fix a regression with
cue get go
dropping CUE files
In https://cuelang.org/cl/1196294 I refactored the code to swap filepath.WalkDir for os.ReadDir, given that we didn't need to read directory trees recursively. However, I failed to realise that a `return nil` would be problematic when replacing a callback function with a regular for loop, as it now stopped the entire parent func. We didn't notice as the test used to happen to hide the bug; the improved test now shows that the bug is fixed. Fixes #3644. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Ia0ebafcf481402faf106af26fea507da98dae47c Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1207330 Reviewed-by: Roger Peppe <rogpeppe@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>