Skip to content

Commit 2a2e641

Browse files
authored
Change default Jsonnet port from C++ to Go (#129)
As threatened in #113 in mid-2019, change the default Jsonnet tool to the Go port, leaving the C++ port available for selection via the "--define" command-line flag to set the "jsonnet_port" build variable accordingly.
1 parent ce4028c commit 2a2e641

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,15 @@ jsonnet_go_dependencies()
4444

4545
## Jsonnet Port Selection
4646

47-
By default, Bazel will use [the C++ port](https://github.com/google/jsonnet) of Jsonnet. To use [the Go port](https://github.com/google/go-jsonnet) of Jsonnet instead, invoke Bazel with the `--define jsonnet_port=go` command-line flag. To select the C++ port explicitly, invoke Bazel with the `--define jsonnet_port=cpp` command-line flag.
47+
By default, Bazel will use [the Go port](https://github.com/google/go-jsonnet) of Jsonnet. To use [the C++ port](https://github.com/google/jsonnet) of Jsonnet instead, invoke Bazel with the `--define jsonnet_port=cpp` command-line flag. To select the Go port explicitly, invoke Bazel with the `--define jsonnet_port=go` command-line flag.
4848

4949
_bazel_ Flag | Jsonnet Port
5050
------------ | ------------
51-
(none) | C++
51+
(none) | Go
5252
`--define jsonnet_port=cpp`| C++
5353
`--define jsonnet_port=go` | Go
5454

55-
Note that the primary development focus of the Jsonnet project is now with the Go port. This repository's support for using the C++ port is deprecated, and may be removed in a future release. Before then, its default port will likely change from C++ to Go in the next release.
56-
55+
Note that the primary development focus of the Jsonnet project is now with the Go port. This repository's support for using the C++ port is deprecated, and may be removed in a future release.
5756

5857
<a name="#jsonnet_library"></a>
5958
## jsonnet_library

jsonnet/BUILD

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config_setting(
2626
alias(
2727
name = "jsonnet_tool",
2828
actual = select({
29-
"//jsonnet:port_go": "@jsonnet_go//cmd/jsonnet",
30-
"//conditions:default": "@jsonnet//cmd:jsonnet",
29+
"//jsonnet:port_cpp": "@jsonnet//cmd:jsonnet",
30+
"//conditions:default": "@jsonnet_go//cmd/jsonnet",
3131
}),
3232
)

0 commit comments

Comments
 (0)