Open josharian opened 5 years ago
Java implementation is not easy to reuse due to dependencies on Bazel. Tracking bug: https://github.com/bazelbuild/bazel/issues/2367
As part of the cleanup, the interface might change. Once we have a clear separation, we'll provide documentation for it.
Instructions if you want to experiment with it:
$ git clone https://github.com/bazelbuild/bazel.git
$ cd bazel
$ bazel build src/main/java/com/google/devtools/starlark:Starlark
$ bazel-bin/src/main/java/com/google/devtools/starlark/Starlark
Edit. updated the last commands (thanks to Josh)
The Java implementation now has no dependencies on Bazel proper, and now uses the java.starlark.net
domain for package names, though it still lives in the Bazel repository and will do continue to do so at least until the interface has been truly stable for months.
$ git clone https://github.com/bazelbuild/bazel.git
$ cd bazel
$ bazel run src/main/java/net/starlark/java/cmd/starlark
Any update, in 2023, on this issue ?
Both the Go and the Rust implementation of starlark have installation instructions. The Java implementation does not. It'd be nice to fill out the Java installation docs. It's not obvious to me where those docs belong (here? in a readme in https://github.com/bazelbuild/bazel/tree/master/src/main/java/com/google/devtools/skylark? in a separate/new repo just for java starlark?), but it'd be nice to have them somewhere.