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

Bump github.com/styrainc/regal from 0.28.0 to 0.29.0 #108

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 12, 2024

Bumps github.com/styrainc/regal from 0.28.0 to 0.29.0.

Release notes

Sourced from github.com/styrainc/regal's releases.

v0.29.0

This is a big release, spanning more than a month of development! Regal v0.29.0 brings new linter rules, performance improvements and new features to both the linter and the language server.

New rules

defer-assignment

Category: performance

The new defer-assignment rule helps detect when assignment can be moved to later in the rule body, possibly avoiding it at all if the conditions below don’t evaluate.

allow if {
    # this assignment can be deferred to after the roles check
    resp := http.send({"method": "get", "url": "http:localhost"})
"rego hacker" in input.user.roles
resp.status_code == 200

}

This can improve performance by having less to evaluate, and it makes policies easier to read. Double win!

For more information, see the docs on defer-assignment.

walk-no-path

Category: performance

When using the walk built-in function on large data structures, traversing only the values without building a path to each node can save a considerable amout of time. The new walk-no-path rule will detect when the assigned path is unused and can be replaced by a wildcard variable, which tells OPA to skip the construction of the path. This dramatically improves the performance of the function.

found if {
    # path assigned but never referenced in the rule
    walk(haystack, [path, value])
value == "needle"

}
should be replaced by
found if {
walk(haystack, [_, value])
value == "needle"

}

For more information, see the docs on walk-no-path.

... (truncated)

Commits
  • 5cb67ea Use new setting to cache AST conversions from store (#1256)
  • 82da7a9 build(deps): bump github/codeql-action from 3.27.1 to 3.27.2 (#1257)
  • 21aa8d4 Add --instrument flag to regal lint (#1254)
  • 22ec7cb Fix false positive given arity mismatch in inconsistent-args (#1252)
  • fe0a2b0 ci: Allow race detector to fail (#1253)
  • 360dda6 build(deps): bump github/codeql-action from 3.27.0 to 3.27.1 (#1251)
  • 99a14b8 build(deps): bump goreleaser/goreleaser-action from 6.0.0 to 6.1.0 (#1249)
  • d016a23 internal/lsp/*_test.go: replace for+success pattern (#1248)
  • 65ff668 lsp/test: Wait for aggregate state to be set (#1247)
  • 24f8553 ci: add depguard for gopkg.in/yaml.v2 (#1246)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/styrainc/regal](https://github.com/styrainc/regal) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/styrainc/regal/releases)
- [Changelog](https://github.com/StyraInc/regal/blob/main/.goreleaser.yaml)
- [Commits](StyraInc/regal@v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: github.com/styrainc/regal
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Nov 12, 2024
@swaroopar swaroopar merged commit 19018be into main Nov 14, 2024
4 checks passed
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/styrainc/regal-0.29.0 branch November 14, 2024 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant