Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to and GraalVM slack:
tees 2020-04-16T20:14:38.132200Z

I'm trying to access a file in resources from a compiled native image (without much luck). Is this possible?

tees 2020-04-16T20:16:49.133Z

ie, (io/resource "foo.clj") works in cider, but fails in Graal; I have added a catch all regex to my includes flag: ( "-H:IncludeResources='.*'")

borkdude 2020-04-16T20:18:21.134Z

@tees yes, this is possible, but your pattern may be incorrect. for clj-kondo I have this:

"-H:IncludeResources=clj_kondo/impl/cache/built_in/.*" \
"-H:Log=registerResource:" \
The latter will print which resources it included.

borkdude 2020-04-16T20:18:43.134400Z

The single quotes in your pattern may not be needed

tees 2020-04-16T20:22:01.135200Z

Oh. Thanks @borkdude. I think that worked. Also, wanted to shout out thanks for the clj-rust-graal example. It's been helpful.