Merge pull request #1537 from aluzzardi/fix-double-vendoring

Fix nested vendoring
This commit is contained in:
Andrea Luzzardi
2022-01-31 17:30:51 -08:00
committed by GitHub

View File

@@ -122,6 +122,11 @@ func extractModules(dest string) error {
return nil
}
// Do not vendor the package's `cue.mod/pkg`
if strings.Contains(p, "cue.mod/pkg") {
return nil
}
contents, err := fs.ReadFile(FS, p)
if err != nil {
return fmt.Errorf("%s: %w", p, err)