Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/unity/cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ func (mt *moduleTester) deriveModules(dir string) (modules []*module, err error)
return fmt.Errorf("failed to create module instance at %s: %v", modDir, err)
}
modules = append(modules, m)
return nil
// Do not recurse within the cue.mod - otherwise we might find modules
// in the vendor
return filepath.SkipDir
})
return
}
Expand Down
10 changes: 9 additions & 1 deletion cmd/unity/cmd/testdata/scripts/test_project_simple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ stdout 'PASS'
-- .unquote --
cue.mod/tests/basic1.txt
cue.mod/tests/basic2.txt
-- cue.mod/pkg/acme.com/other/other.cue --
package other

y: 5
-- cue.mod/pkg/acme.com/other/cue.mod/module.cue --
module: "acme.com/other"
-- cue.mod/module.cue --
module: "mod.com"

Expand All @@ -40,4 +46,6 @@ Versions: ["PATH"]
-- x.cue --
package x

x: 5
import "acme.com/other"

x: other.y