We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Starlark code:
as_json = json.encode('{"key1": 1, "key2": 2}') print(as_json)
When you run this with starlark_go it works as expected. It prints:
{"key1": 1, "key2": 2}
However, if you do the same with python-starlark-go, then you get
Traceback (most recent call last): File "<stdin>", line 1, in <module> starlark_go.errors.ResolveError: <expr>:1:11: undefined: json
Minimal reproducer in Python:
from starlark_go import Starlark s = Starlark() s.exec('''as_json = json.encode('{"key1": 1, "key2": 2}')''') s.eval("as_json")
The text was updated successfully, but these errors were encountered:
Thanks for the report! I plan to add this in a future release, but I still haven't decided how I want to implement imports
Sorry, something went wrong.
No branches or pull requests
Starlark code:
When you run this with starlark_go it works as expected. It prints:
However, if you do the same with python-starlark-go, then you get
Minimal reproducer in Python:
The text was updated successfully, but these errors were encountered: