-- want --
valid:
$work/go.mod
$work/pkg/vendor/vendor.go
$work/valid.go

omitted:
$work/.hg_archival.txt: file is inserted by 'hg archive' and is always omitted
$work/.git: directory is a version control repository
$work/sub: directory is in another module
$work/vendor/modules.txt: file is in vendor directory
$work/vendor/x/y: file is in vendor directory

invalid:
$work/invalid.go': malformed file path "invalid.go'": invalid char '\''
-- go.mod --
go 1.24
-- valid.go --
-- invalid.go' --
-- vendor/modules.txt --
-- vendor/x/y --
-- sub/go.mod --
go 1.23
-- .hg_archival.txt --
-- .git/x --
-- pkg/vendor/vendor.go --
