rules_ocaml icon indicating copy to clipboard operation
rules_ocaml copied to clipboard

env vars for ppx transforms

Open mobileink opened this issue 4 years ago • 0 comments

Demo ppx/get_env runs a ppx that reads an env variable. Currently it fails with "env var not found". Passing --action_env does not help.

My suspicion is that this is because the ppx transform action is indirect, invoked as needed by the module rule, and the latter needs to pass the env explicitly.

mobileink avatar Sep 10 '21 00:09 mobileink