Skip to content

Commit b68a10b

Browse files
Release 0.5.5 (#487)
1 parent d46fc08 commit b68a10b

4 files changed

Lines changed: 67 additions & 21 deletions

File tree

.github/workflows/release-build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,21 @@ jobs:
6262
- uses: actions/checkout@v4
6363
- uses: actions/setup-java@v4
6464
with:
65-
java-version: 17
65+
java-version: 21
6666
distribution: 'zulu'
6767
- name: Set up environment variables
6868
run: |
6969
echo "VERSION=$(cat sjsonnet/version)" >> $GITHUB_ENV
7070
echo "SCALA_VERSION=3.3.6" >> $GITHUB_ENV
7171
- name: Native Binary Build
7272
run: ./mill "sjsonnet.native[$SCALA_VERSION].nativeLink"
73+
- name: GraalVM Binary Build
74+
run: ./mill "sjsonnet.graal.nativeImage"
7375
- name: Rename Artifacts
7476
run: |
7577
mkdir release
7678
cp ./out/sjsonnet/native/$SCALA_VERSION/nativeLink.dest/out ./release/sjsonnet-$VERSION-${{ matrix.platform.name }}
79+
cp ./out/sjsonnet/graal/nativeImage.dest/native-executable ./release/sjsonnet-graalvm-$VERSION-${{ matrix.platform.name }}
7780
- uses: actions/upload-artifact@v4
7881
name: Upload Native Binary
7982
with:

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
## 0.5.4 (Latest)
1+
## 0.5.5 (Latest)
2+
* Fix multiple assertion related bugs (inheritance, binding of super in inherited assertions, and timing of evaluation) by @JoshRosen in https://github.com/databricks/sjsonnet/pull/468
3+
* Fix detection of duplicate fields with dynamic field name expressions by @JoshRosen in https://github.com/databricks/sjsonnet/pull/470
4+
* chore: Make std.setInter accepts str. by @He-Pin in https://github.com/databricks/sjsonnet/pull/472
5+
* chore: Make std.setDiff accepts str. by @He-Pin in https://github.com/databricks/sjsonnet/pull/478
6+
* chore: Make std.setUnion accept str. by @He-Pin in https://github.com/databricks/sjsonnet/pull/480
7+
* Add graalvm build and test suite - experimental by @stephenamar-db in https://github.com/databricks/sjsonnet/pull/482
8+
9+
## 0.5.4
210
* Upgrade to mill 1.0.2
311
* Fix parsing error with numbers causing whitespaces to be consumed. by @stephenamar-db in https://github.com/databricks/sjsonnet/pull/457
412
* Fix parseInt to properly understand longs by @stephenamar-db in https://github.com/databricks/sjsonnet/pull/458

readme.md

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,58 @@
11
# Sjsonnet
2-
A Scala implementation of the [Jsonnet](https://jsonnet.org/) configuration language, running on JVM, Scala Native and JavaScript.
2+
A Scala implementation of the [Jsonnet](https://jsonnet.org/) configuration language, running on JVM, GraalVM, Scala Native and JavaScript.
33

4-
## Usage
4+
## Usage as a CLI
5+
We release standalone executables JARs, Scala Native and GraalVM in the [github release page](https://github.com/databricks/sjsonnet/releases):
6+
7+
```bash
8+
$ chmod +x sjsonnet.jar
9+
10+
$ ./sjsonnet.jar
11+
Missing argument: file <str>
12+
Expected Signature: Sjsonnet
13+
usage: sjsonnet [sjsonnet-options] script-file
14+
-A --tla-str <str> <var>[=<val>] Provide top-level arguments as string. 'If <val> is
15+
omitted, get from environment var <var>
16+
-J --jpath <str> Specify an additional library search dir (left-most wins unless
17+
reverse-jpaths-priority is set)
18+
-S --string Expect a string, manifest as plain text
19+
-V --ext-str <str> <var>[=<val>] Provide 'external' variable as string. 'If <val> is
20+
omitted, get from environment var <var>
21+
-V --ext-code <str> <var>[=<code>] Provide 'external' variable as Jsonnet code. If
22+
<code> is omitted, get from environment var <var>
23+
-V --tla-code <str> <var>[=<val>] Provide top-level arguments as Jsonnet code. 'If
24+
<val> is omitted, get from environment var <var>
25+
-c --create-output-dirs Automatically creates all parent directories for files
26+
--debug-importer Print some additional debugging information about the importer
27+
-e --exec Evaluate the given string as Jsonnet rather than treating it as a
28+
file name
29+
--ext-code-file <str> <var>=<file> Provide 'external' variable as Jsonnet code from the
30+
file
31+
--ext-str-file <str> <var>=<file> Provide 'external' variable as string from the file
32+
--fatal-warnings Fail if any warnings were emitted
33+
file <str> The jsonnet file you wish to evaluate
34+
-m --multi <str> Write multiple files to the directory, list files on stdout
35+
-n --indent <int> How much to indent your output JSON
36+
-o --output-file <str> Write to the output file rather than stdout
37+
-p --preserve-order Preserves order of keys in the resulting JSON
38+
--reverse-jpaths-priority If set, reverses the import order of specified jpaths (so that the
39+
rightmost wins)
40+
--strict Enforce some additional syntax limitations
41+
--throw-error-for-invalid-sets Throw an error if a set operation is used on a non-set
42+
--tla-code-file <str> <var>=<file> Provide top-level arguments variable as Jsonnet code
43+
from the file
44+
--tla-str-file <str> <var>=<file> Provide top-level arguments variable as string from
45+
the file
46+
-y --yaml-stream Write output as a YAML stream of JSON documents
47+
--yaml-debug Generate source line comments in the output YAML doc to make it
48+
easier to figure out where values come from.
49+
--yaml-out Write output as a YAML document
50+
51+
$ ./sjsonnet.jar foo.jsonnet
52+
```
53+
54+
55+
## Usage as a library
556
657
Sjsonnet can be used from Java and Scala:
758
@@ -37,22 +88,6 @@ sjsonnet.SjsonnetMain.main0(
3788
);
3889
```
3990
40-
As a standalone executable assembly from the [github release page](https://github.com/databricks/sjsonnet/releases):
41-
```bash
42-
$ chmod +x sjsonnet.jar
43-
44-
$ ./sjsonnet.jar
45-
error: Need to pass in a jsonnet file to evaluate
46-
usage: sjsonnet [sjsonnet-options] script-file
47-
48-
-n, --indent How much to indent your output JSON
49-
-J, --jpath Specify an additional library search dir (left-most wins)
50-
-o, --output-file Write to the output file rather than stdout
51-
...
52-
53-
$ ./sjsonnet.jar foo.jsonnet
54-
```
55-
5691
Or from Javascript:
5792
5893
Since `0.5.3`, the output is a CommonJS module.

sjsonnet/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.5-SNAPSHOT
1+
0.5.5

0 commit comments

Comments
 (0)