Skip to content

std.objectRemoveKey does not return consistent results between Go an C version #830

@Duologic

Description

@Duologic
$ jsonnet --version
Jsonnet commandline interpreter (Go implementation) v0.21.0
$ jsonnet -e 'std.objectRemoveKey({ hello: "playground", hidden:: "yes" }, "hello").hidden'
"yes"
$ cjsonnet --version
Jsonnet commandline interpreter v0.21.0
$ cjsonnet -e 'std.objectRemoveKey({ hello: "playground", hidden:: "yes" }, "hello").hidden'
RUNTIME ERROR: field does not exist: hidden
        <cmdline>:1:1-77

Given the stdlib function in C's stdlib/std.jsonnet doesn't take hidden fields into account this is kinda expected. Should this be a bug here or in the C version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions