Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/mod/modpkgload: symbolic links can be valid CUE files too
The test for whether there are any potential CUE files in a directory was too naive when testing for file type: it should do what Go does [1] and use the underlying information from symbolic links. [1] https://github.com/golang/go/blob/fc51e5023ec99fee405ae61ee4ab2c8c9bc66f24/src/cmd/go/internal/imports/scan.go#L29 Fixes #3298 Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Id6cc3308e49c11c221e6af423c886050f6dbd5c6 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198003 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information