hashicorp / sentinel-sdk

This SDK allows developers to extend Sentinel to source external information for use in their policies.
Mozilla Public License 2.0
51 stars 13 forks source link

`print` doesn't work. #11

Closed tammersaleh closed 6 years ago

tammersaleh commented 6 years ago

I believe this sentinel file should print "Hello!" to the console when run with -trace, but it doesn't.

$ sentinel -version
Sentinel Simulator v0.1.0

$ cat print.sentinel
main = rule {
    print("Hello!")
}

$ sentinel apply -trace print.sentinel
Pass

Execution trace. The information below will show the values of all
the rules evaluated and their intermediate boolean expressions. Note that
some boolean expressions may be missing if short-circuit logic was taken.

TRUE - print.sentinel:1:1 - Rule "main"
tammersaleh commented 6 years ago

@topfunky figured it might be best to open a ticket against the github repo.

tammersaleh commented 6 years ago

...and just realized that this isn't the right repo.