-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Regal lint fails when setting capabilities in config.yaml in windows #1202
Comments
Thanks for reporting this! As for the first issue — can you try using I'll have to look into why loading the capabilities from file doesn't work. The capabilities system was somewhat remodeled recently to allow EOPA to be set as an engine, and perhaps that introduced a change in behavior. Or it's isolated to Windows as you suggested. Some digging to do! |
The 'v' did it. Since that worked, the next issue may not be that important, however, I think testing all file-path-related functionality on windows images probably is a good idea, due to how the error message looked. Thanks! |
Better error reporting for when the version is either numeric, or missing a The Windows path issue will have to be addressed separately, but we'll get to that. |
This change ensures that config files with relative capabilities references work correctly. Fixes StyraInc#1202 Signed-off-by: Charlie Egan <charlie@styra.com>
) As reported in StyraInc#1202 (thanks @geirs73!) Note however that this does not address the Windows path loading issue from the same issue though. Signed-off-by: Anders Eknert <anders@styra.com>
This change ensures that config files with relative capabilities references work correctly. Fixes StyraInc#1202 Signed-off-by: Charlie Egan <charlie@styra.com>
We need to lint against a bit older opa.exe in production. Seems like this is a problem on windows. At least for me.
.regal/config.yaml:
Our rego bundle resides in directory named rego in directory
C:\git\work\policies
. Trying to run linting.Not sure why this happens. I do not have opa.exe (this is windows) in $PATH, so if regal.exe needs to call opa.exe to get it, it will probably not find it.
I also tried downloading the opa capabilities file and store it locally, to get around the above problem.
Seems like there is some issue concerning how paths are handled on Windows here?
The text was updated successfully, but these errors were encountered: