Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add relative file paths to config_to_policy.rs #781

Open
j-lanson opened this issue Jan 13, 2025 · 0 comments
Open

Add relative file paths to config_to_policy.rs #781

j-lanson opened this issue Jan 13, 2025 · 0 comments
Assignees
Labels
product: hc Relates to the core "hc" binary type: enhancement New feature or request
Milestone

Comments

@j-lanson
Copy link
Collaborator

j-lanson commented Jan 13, 2025

We want the policy files generated by config_to_policy.rs to have file paths relative to the Hipcheck.toml file that created them, similar to what #rel() accomplishes in policy file parsing. This will require recording and passing along to location of Hipcheck.toml to the config_to_policy.rs entrypoint, which is not currently immediately accessible.

At the end of this, config fields like binary-path should take "Binary.kdl" as a path and combine it with the parent dir of the source "Hipcheck.toml" file.

@j-lanson j-lanson changed the title Add use of #rel() to config_to_policy.rs Add relative file paths to config_to_policy.rs Jan 13, 2025
@j-lanson j-lanson added type: enhancement New feature or request product: hc Relates to the core "hc" binary labels Jan 13, 2025
@j-lanson j-lanson added this to the 3.10.0 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: hc Relates to the core "hc" binary type: enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants