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
fix: Conftest can now successfully load files using a file URL (e.g., file:///C:/path/to/data.yaml) on windows (#999)
* fix:
Conftest encounters errors on Windows when loading file paths that include drive letters (e.g., `C:/path/to/data.yaml`).
Even when using a file URL (e.g., `file:///C:/path/to/data.yaml`), we still face issues.
With these code changes, Conftest can now successfully load files using a file URL (e.g., `file:///C:/path/to/data.yaml`).
We opted for file URLs instead of paths with drive letters (e.g., `C:/path/to/data.yaml`) because OPA does not support file paths with drive letters. For more details, see [this issue comment](open-policy-agent/opa#6922 (comment)).
Resolves: #979
Signed-off-by: Punith C K <pck@veracode.com>
* fix:
Removing WithProcessAnnotation(true) which is not needed for loading data files
Signed-off-by: Punith C K <punithck@itsupports-Laptop.local>
* fix: Conftest can now successfully load files using a file URL (e.g., file:///C:/path/to/data.yaml) on windows
Removing duplicate code
Signed-off-by: Punith C K <pck@veracode.com>
---------
Signed-off-by: Punith C K <punithck@itsupports-Laptop.local>
Signed-off-by: Punith C K <pck@veracode.com>
Co-authored-by: Punith C K <punithck@itsupports-Laptop.local>
0 commit comments