Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cue def] does not keep the "template" correctly #3619

Open
quanghungb opened this issue Dec 9, 2024 · 0 comments
Open

[cue def] does not keep the "template" correctly #3619

quanghungb opened this issue Dec 9, 2024 · 0 comments
Labels
NeedsInvestigation Triage Requires triage/attention

Comments

@quanghungb
Copy link

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

cue version v0.11.0

go version go1.23.3
      -buildmode exe
       -compiler gc
       -trimpath true
     CGO_ENABLED 0
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
cue.lang.version v0.11.0

Does this issue reproduce with the latest stable release?

Yes

What did you do?

outputs: [Name=string]: metadata: {
	name:   "\(Name)"
	labels: string
}
outputs: "test": metadata: labels: "test-label"

  • Output with cue def
outputs: {
	{
		[Name=string]: metadata: {
			name:   "\(string)"
			labels: string
		}
	}
	test: metadata: labels: "test-label"
}

What did you expect?

As you can see the field name is not correct in the definition output name: "\(string)". Therefore if we are executing the output def we will get this following error

outputs.objectstorage.metadata.name: invalid interpolation: non-concrete value string (type string)
@quanghungb quanghungb added NeedsInvestigation Triage Requires triage/attention labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Triage Requires triage/attention
Projects
None yet
Development

No branches or pull requests

1 participant