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.30.2 to 0.31.1 #134

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 26, 2025

Bumps github.com/styrainc/regal from 0.30.2 to 0.31.1.

Release notes

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

v0.31.1

This patch release fixes some issues reported by users, as well as some encountered while working on Regal. Most notably:

  • Fix issue where an absolute path to the config file wouldn't work on Windows (thanks @​geirs73 for reporting this!)
  • Fix issue where configured ignore values had no effect if Regal ran from the root directory (thanks @​nevumx for the issue!)
  • Fix issue in language server when files with : in their name are present in the workspace
  • Fix issue in language server where Code Lens annotations (like Evaluate and Debug) would appear and reappear quickly when parse errors where encountered and fixed, leading to a "flickering" editor window

Changelog

  • dcecdabf079e7bbcb954a9dd8047c7092bc17a04: docs: Use strings for non-loop expression role (#1409) (@​charlieegan3)
  • c09bc934b285b809c2e5d7da2dd8ba837181c105: docs: Make editor support link clearer in README (#1411) (@​charlieegan3)
  • 3177417a2c937270b1445126898dd2747e6137e5: build(deps): bump the dependencies group with 2 updates (#1413) (@​dependabot[bot])
  • f472f400807df2c72583e7e17bbe301a274db284: Bump Go to 1.23, and replace archived dependency (#1410) (@​anderseknert)
  • 772aeb044795bb087ca77574765f893812400eed: cmd/lint: Fix windows Abs path handling (#1416) (@​charlieegan3)
  • 48e2ef9ce9926c115d0d05497c278760ecad7603: build(deps): bump the dependencies group with 5 updates (#1417) (@​dependabot[bot])
  • eeec21039826206a5cb6e1601bd865883f357e13: lint: Handle root filesystem root prefix (#1418) (@​charlieegan3)
  • 25bde5a2fb2132443ef63cb0d7a7a5aaf03814ae: lsp: URI/Path handling fixes (#1419) (@​charlieegan3)
  • 4fd08cb2fe0697e6a4f16419830fcf1cc6ab063c: lsp: Fix Code Lenses jank (#1420) (@​charlieegan3)

v0.31.0

This release of Regal updates to OPA v1.1.0, continuing to solidify support for v1 Rego with some nice new rules, performance improvements and bug fixes too.

New Rule: use-object-keys

There are some cases where using object.keys is preferred over using comprehensions. For example:

Avoid

package policy
keys := {k | some k, _ in input.object}

Prefer

package policy
keys := object.keys(input.object)

This is preferred as it more clearly communicates the intent of the code, that is, to get the keys of the object rather than loop over it and collect the keys as you go. More details can be found on the use-object-keys rule page.

New Rule: non-loop-expression

Expressions in loops are evaluated in each iteration of the loop and so it's advisable to avoid using expressions which do not depend on the loop variable within the looping part of a rule in order to improve performance.

Avoid

... (truncated)

Commits

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.30.2 to 0.31.1.
- [Release notes](https://github.com/styrainc/regal/releases)
- [Changelog](https://github.com/StyraInc/regal/blob/main/.goreleaser.yaml)
- [Commits](StyraInc/regal@v0.30.2...v0.31.1)

---
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 Feb 26, 2025
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.

0 participants