exec cue def
cmp stdout out-stdout

exec cue def --inline-imports
cmp stdout out-stdout-expand

-- cue.mod/module.cue --
module: "mod.test/a"
language: version: "v0.9.0"

-- in.cue --
package a

import "mod.test/a/pkg"
import "list"

v: pkg.v

// Never inline core packages.
run: list.Comparer

-- pkg/pkg.cue --
package pkg

v: { x: 3, y: x }

-- out-stdout --
package a

import (
	"mod.test/a/pkg"
	"list"
)

v: pkg.v

// Never inline core packages.
run: list.Comparer
-- out-stdout-expand --
package a

import "list"

v: {
	x: 3
	y: x
}

// Never inline core packages.
run: list.Comparer
