-
Notifications
You must be signed in to change notification settings - Fork 294
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
cmd/cue: multi-byte characters in YAML result in bad formatting #826
Comments
Original reply by @uhthomas in cuelang/cue#826 (comment) Another example |
Original reply by @myitcv in cuelang/cue#826 (comment) Confirmed with 7c5d28e |
Formatting looks fine to me. A more specific example is welcome. |
@mpvl Sorry, I must not have seen your comment. Given https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml ❯ cue import --list cert-manager.yaml Produces https://gist.github.com/uhthomas/da3842ef5880be0e26f05a00272a3ae4 The formatting is initially fine, but then looks really weird around here: https://gist.github.com/uhthomas/da3842ef5880be0e26f05a00272a3ae4#file-cert-manager-cue-L3081 apiVersion:
"apiextensions.k8s.io/v1", kind:
"CustomResourceDefinition", metadata: {
name: "certificaterequests.cert-manager.io"
labels: {
app: "cert-manager"
"app.kubernetes.io/name": "cert-manager"
"app.kubernetes.io/instance": "cert-manager"
// Generated labels
"app.kubernetes.io/version": "v1.11.0"
}
}, spec: {
group: "cert-manager.io" I hope it's clear that something is wrong here. |
Originally opened by @uhthomas in cuelang/cue#826
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
curl -Lfv https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.yaml > t.yaml cue import --list t.yaml
What did you expect to see?
A nicely formatted CUE file.
What did you see instead?
The text was updated successfully, but these errors were encountered: