CompileString - stat .: permission denied
Closed this issue · 1 comments
Using CompileString
can result in errors if run in a container environment without a readable working directory, when the URL passed is not absolute.
I understand the reason for trying to resolve the URL, but I did not expect a panic when loading an embed schema from a string that is known to be a valid. It's an easy enough error to correct (pass an absolute URL,) but detecting it requires running the code in an esoteric environment, so it's easy to accidentally make this error and only discover it at a bad time.
EXPECTED_BAHAVIOR
this is the expected behaviour. if you pass non-absolute url to CompileString
it converts to file based absolute path.
passing absolute url to CompileString
should work fine without working directory set