mix portals.sdk_path (portals v0.1.0)

Copy Markdown View Source

Prints the absolute path of the worker SDK bundled with a language package, for configuring editors, type checkers, go.mod replace directives or javac -cp:

$ mix portals.sdk_path python
/app/_build/dev/lib/portals_python/priv/python

The path is the last line of output; when dependencies still need compiling, Mix prints its own progress first, so scripts should take the last line: $(mix portals.sdk_path java | tail -n 1).

The language's package (portals_python, ...) must be a dependency of the current project. Supported languages: go, java, javascript, php, python, ruby.