Commit Graph

20 Commits

Author SHA1 Message Date
John Bartholomew
67968688d9 release: prepare to release v0.21.0 2025-05-07 16:12:02 +01:00
John Bartholomew
74c8d09d4a feat: update cpp-jsonnet and stdlib to latest (unreleased)
This includes the stdlib additions in
https://github.com/google/jsonnet/pull/1187

Also updates golden files for go-jsonnet tests; the changes
to the goldens are mostly changes to error locations from
the standard library.
2025-01-18 17:12:28 +00:00
Dave Cunningham
0e07fcda92
Update cpp version (#687) 2023-04-17 18:29:20 +01:00
Sheridan C Rawlins
a39e181c51
[661] Update stdlib to get std.escapeStringXml (#662)
See
- https://github.com/google/jsonnet/issues/1037
- https://github.com/google/jsonnet/pull/1038
2023-01-29 17:54:54 +00:00
Dave Cunningham
c1825dc54d Update to latest CPP version 2022-10-26 16:13:21 +01:00
Dave Cunningham
6186bb7667 Release 2021-12-21 16:48:56 +00:00
Stanisław Barzowski
b00b56c335 Avoid depending on stdlib variable for desugaring.
The fix is easy – we just use "$std" which the user cannot access,
because it's not a valid identifier.
2021-08-09 19:25:33 +01:00
Hanyu Cui
cd59751527
Distinguish go-jsonnet from cpp-jsonnet in version message (#497)
Distinguish the Go implementation in the version message
2021-01-13 20:46:15 +01:00
Hanyu Cui
7d3bda3911
Add std. manifestJsonMinified (#492)
Pick up std changes in cpp and update builtinManifestJSONEx
2020-12-31 11:20:31 +01:00
Stanisław Barzowski
0d1d4cb812 Release 0.17.0 2020-11-22 15:45:52 +01:00
Stanisław Barzowski
2bc774a030 Update cpp-jsonnet. Stop changing cpp-jsonnet version in tests.sh. 2020-11-21 15:10:43 +01:00
Stanisław Barzowski
b70cbd441a Anonymous Import Locations
We used to treat dummy paths like <stdin>, <std>, <extvar> as
real import locations, which causes obvious problem for importers.

After this change we consistently pass "" (an empty string) as location
for non-imported paths.

We exposed new functions to properly handle all paths.

The first function family, EvaluateFile* which allow evaluating
a Jsonnet program at a specified importable path. It should
be used in most cases.

The second function family, EvaluateAnonymousSnippet* allows evaluating
a snippet without an importable path. It should be used for situations
like the code passed as a commandline argument, stdin, etc.

The old function family, EvaluateSnippet* is now deprecated, but
works the same as before, i.e. the passed filenames are treated
as imported paths.

Changes are required to custom importers to make sure they satisfy
the refined contract.

Fixes #329.
2020-09-08 17:27:47 +02:00
Stanisław Barzowski
2824579c7d Update cpp-jsonnet 2020-05-22 14:54:20 +02:00
Dave Cunningham
724650d358
Add native golang formatter (#388)
Add native golang formatter
2020-03-10 22:19:49 +00:00
Dave Cunningham
0e67cc3c68 Refactor to allow interleaving optional and positional params 2020-03-05 09:33:21 +01:00
Dave Cunningham
8b2b1ba839 Avoid float overflow errors at parse time. 2020-02-27 23:06:53 +00:00
Stanisław Barzowski
425405da78 Update cpp-jsonnet. 2020-02-09 23:57:46 +01:00
Dave Cunningham
dc5c94ac78
Add fodder to AST nodes (#319)
* Preserve fodder during parsing.
2019-09-24 12:11:22 +01:00
Stanisław Barzowski
c77f22c99f Eliminate the unnecessary ast.StdAst
The initially empty ast.StdAst was created to break the circular
dependency. The generation of stdlib AST used to depend on
the primary "jsonnet" package, which meant that "jsonnet"
could not depend on it directly. Hence stdlib needed to be put
in the ast package. Now dumpstdlibast no longer depends on Jsonnet,
so we can get rid of this complication.

All code using ast.StdAst should now use astgen.StdAst.
2019-09-01 21:17:29 +02:00
Steve Harris
3e7d3b16a4 Commit astgen/stdast.go file for use with "go get" 2019-06-15 01:34:11 +02:00