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 fix transforms multiple list + into deeply nested Concat #3523

Open
nyarly opened this issue Oct 18, 2024 · 0 comments
Open

cue fix transforms multiple list + into deeply nested Concat #3523

nyarly opened this issue Oct 18, 2024 · 0 comments
Labels
NeedsInvestigation Triage Requires triage/attention

Comments

@nyarly
Copy link

nyarly commented Oct 18, 2024

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

$ cue version
cue version v0.11.0-alpha.3

go version go1.22.5
      -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?

List addition is only disallowed in 0.11 afaik

What did you do?

// pre 0.11
l: ["a"] + ["b"] + ["c"] + ["d"]

cue fix

import 'list'
l: list.Concat([list.Concat([list.Concat([["a"], ["b"]]), ["c"]), ["d"]])

At top levels and in complex configurations, this is impossible to read or reason about clear enough to repair.

What did you expect to see?

import "list"
l: list.Concat([["a"], ["b"], ["c"], ["d"]])
@nyarly nyarly added NeedsInvestigation Triage Requires triage/attention labels Oct 18, 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