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

jsonnet fmt unquotes local in object keys #211

Closed
huggsboson opened this issue Jun 28, 2016 · 1 comment
Closed

jsonnet fmt unquotes local in object keys #211

huggsboson opened this issue Jun 28, 2016 · 1 comment

Comments

@huggsboson
Copy link
Contributor

huggsboson commented Jun 28, 2016

jsonnet fmt is attempting to unquote an object key when it shouldn't.

Here is our example:

local clusterEnvDefaultFlags = {
    "local-build": {
        "local": {
            cluster: "dev",
            group: "init",
        },
        dev: {
            cluster: "dev",
            group: "init",
        },
    },
    ...
}

It is removing the quotes around "local" leading to STATIC ERROR: .../app.jsonnet:8:14: Expected token IDENTIFIER but got ":"

.

@sparkprime
Copy link
Member

This should be fixed in HEAD, reported earlier in #170

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

No branches or pull requests

2 participants