You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inside of the VS code extension this makes a difference because the file paths for -d option are clickable whereas the file paths for -b are not.
For -b files loaded out of a directory (i.e., not out of a tarball), I think it would be better to prefix with the -b flag value. For the tarball case, it's a bit trickier.
The text was updated successfully, but these errors were encountered:
When reading a bundle from a directory we should be using the full
system path for the module files. This helps greatly with reducing
complexity of trying to read error messages. It also makes the
integration with tools like VSCode work better as they can provide
links from the console output file paths to the file in question.
This will not affect bundles loaded from tarballs.
Fixes: open-policy-agent#1796
Signed-off-by: Patrick East <east.patrick@gmail.com>
Simple example:
x.rego:
Output differs depending on whether -b or -d is used:
Inside of the VS code extension this makes a difference because the file paths for -d option are clickable whereas the file paths for -b are not.
For -b files loaded out of a directory (i.e., not out of a tarball), I think it would be better to prefix with the -b flag value. For the tarball case, it's a bit trickier.
The text was updated successfully, but these errors were encountered: