Skip to content

added _ as a replacement for kind name#537

Merged
jalseth merged 1 commit into
plexsystems:mainfrom
garethahealy:main
Sep 26, 2024
Merged

added _ as a replacement for kind name#537
jalseth merged 1 commit into
plexsystems:mainfrom
garethahealy:main

Conversation

@garethahealy

Copy link
Copy Markdown
Contributor

with the latest release of regal, it adds a check for to make sure the package names matches the path.

My paths have traditionally included a - and the package (which doesn't allow -) uses _. with this new check, I've made the paths match the packages but that then means the generated name for templates is invalid.

this PR adds _ to the replacement list for names

@garethahealy

Copy link
Copy Markdown
Contributor Author

can see this new regal check would trigger your examples as well, i.e.: https://github.com/plexsystems/konstraint/blob/main/examples/container-deny-added-caps/src.rego#L22

@garethahealy

Copy link
Copy Markdown
Contributor Author

@jalseth ; good to merge?

@jalseth jalseth left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jalseth jalseth merged commit 0c240fe into plexsystems:main Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants