cue icon indicating copy to clipboard operation
cue copied to clipboard

Getting stuck with cycle reference in the import statement

Open selmison opened this issue 3 years ago • 0 comments

What version of CUE are you using (cue version)?

$ cue version
cue version 0.4.3 linux/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

When a cue file in a module has a import statement referring to its own package, the cue command get stuck and don't return a error. E. g.:

Content of the \<root dir\>/cue.mod/module.cue file:

module: "<url>/<path>"

Content of the \<root dir\>/test.cue file:

package <package>

import (
	"<url>/<path>/<package>"
)

What did you expect to see?

Return a error message informing a cycle reference in the import statement.

What did you see instead?

Cue command get stuck

selmison avatar Aug 21 '22 18:08 selmison