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

Inconsistency with extVar values for ext-code between sjsonnet and go-jsonnet #76

Closed
Qinusty opened this issue Jun 18, 2020 · 0 comments

Comments

@Qinusty
Copy link
Contributor

Qinusty commented Jun 18, 2020

When attempting to load jsonnet/json values via std.extVar(), a stacktrace can appear with sjsonnet in circumstances which work as expected with go-jsonnet.

Reproducer

# example.jsonnet
local x = std.extVar('x');
x.code
# reproduce.bash
export x="{code:123}"
jsonnet example.jsonnet --ext-code x
java -jar sjsonnet.jar example.jsonnet --ext-code x

This should be tracked as part of #73

lihaoyi-databricks added a commit that referenced this issue Jun 2, 2023
… handling of numbers in manifestXmlJsonml, handling of code in extCode (#171)

Fixes #110 and
#149 and
#74 and
#56 and
#47 and
#114 and
#76

Mostly straightforward changes, though the constructor signature of
`Interpeter` and `Evaluator` had to change a bit to satisfy the fixed
`extCode` semantics. Added unit tests to assert the correct behaviors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants