Skip to content
Jsonnet - The data templating language
Branch: master
Clone or download
Pull request Compare This branch is 108 commits behind google:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmarks
case_studies
cmd
core
cpp
doc
editors
examples
gc_stress
include
perf_tests
python
stdlib
test_cmd
test_suite
third_party/md5
tools
vs2017
.clang-format
.gitattributes
.gitignore
.travis.yml
CMakeLists.txt
CMakeLists.txt.in
CONTRIBUTING
Dockerfile
LICENSE
MANIFEST.in
Makefile
README.md
WORKSPACE
gmock.BUILD
setup.py
tests.sh

README.md

Jsonnet - The data templating language

Build Status

For an introduction to Jsonnet and documentation, visit our website.

Visit our discussion forum.

Building Jsonnet

You can use either GCC or Clang to build Jsonnet. Note that on recent versions of macOS, /usr/bin/gcc and /usr/bin/g++ are actually Clang, so there is no difference.

Makefile

To build Jsonnet with GCC, run:

make

To build Jsonnet with Clang, run:

make CC=clang CXX=clang++

To run the output binary, run:

./jsonnet

Bazel

Bazel builds are also supported. Install Bazel if it is not installed already. Then, run the following command to build with GCC:

bazel build -c opt //cmd:jsonnet

To build with Clang, use one of these two options:

env CC=clang CXX=clang++ bazel build -c opt //cmd:jsonnet

# OR

bazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:jsonnet

This builds the jsonnet target defined in cmd/BUILD. To launch the output binary, run:

bazel-bin/cmd/jsonnet

Contributing

See the contributing page on our website.

You can’t perform that action at this time.