# This test checks that cue mod edit works OK even when the
# module file doesn't conform to the strict parsing.
exec cue mod edit --source self
cmp cue.mod/module.cue want-module

-- cue.mod/module.cue --
module: "main.org"
deps: "foo.com": v: "v1.2.3"
language: version: "v0.9.0-alpha.0"
-- want-module --
module: "main.org"
language: {
	version: "v0.9.0-alpha.0"
}
source: {
	kind: "self"
}
deps: {
	"foo.com": {
		v: "v1.2.3"
	}
}
