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: Label alias reference destroyed by value.Syntax() #2360

Open
kajogo777 opened this issue Apr 22, 2023 · 4 comments
Open

cue: Label alias reference destroyed by value.Syntax() #2360

kajogo777 opened this issue Apr 22, 2023 · 4 comments
Labels

Comments

@kajogo777
Copy link

What version of CUE are you using?

go library v0.6.0-alpha.1

Does this issue reproduce with the latest stable release?

Yes, the same happens with v0.5.0

What did you do?

#Schema: [ID=string]: id: ID

load instance then run value.Syntax(), doesn't matter if I disable InlineImports
then print the result using

format.Node(node, format.Simplify())

What did you expect to see?

#Schema: [ID=string]: id: ID

What did you see instead?

#Schema: [ID=string]: id: string
@kajogo777 kajogo777 added NeedsInvestigation Triage Requires triage/attention labels Apr 22, 2023
@kajogo777 kajogo777 changed the title Label alias reference destroyed by valye.Syntax() Label alias reference destroyed by value.Syntax() Apr 22, 2023
@verdverm
Copy link

I suspect this is mostly about choosing the right cue.Option(s) for the task at hand. Can you share which ones you are already using, or are you calling it without any?

@kajogo777
Copy link
Author

I tried different combinations of different cue.Option(s) it doesn't matter, for example I tried cue.All() I even tried enabling and disabling InlineImports as I mentioned above.

@verdverm
Copy link

It seems many options are broken right now: #2404

@myitcv myitcv added the zGarden label Jun 13, 2023
@myitcv myitcv changed the title Label alias reference destroyed by value.Syntax() cue: Label alias reference destroyed by value.Syntax() Jun 13, 2023
@myitcv myitcv removed the zGarden label Jun 13, 2023
@myitcv
Copy link
Member

myitcv commented Jun 13, 2023

Thanks @kajogo777. Leaving as triage to extract a reproducer, and to bisect. This could be related to the recent-ish self-contained changes, or could be a pre-existing bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants