internal/mod/modimports: exclude hidden CUE files
The `modimports` logic should exclude "hidden" CUE files
just as it excludes directories.
For #3795
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I9219cd58cf7a02adaed5774af71669596849832e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211242
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>