Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: open-policy-agent/regal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.30.0
Choose a base ref
...
head repository: open-policy-agent/regal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.30.1
Choose a head ref
  • 6 commits
  • 42 files changed
  • 2 contributors

Commits on Jan 14, 2025

  1. lsp/completions: Reorder for cheap rego.v1 check (#1335)

    #1327 (comment)
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Charlie Egan authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    d9ba656 View commit details
    Browse the repository at this point in the history
  2. docs: opa-fmt v1/v0 notes (#1336)

    This explains the different behaviour of `opa fmt` between v0 and v1
    when working with v0/v1 files in Rego.
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Charlie Egan authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    10d3c70 View commit details
    Browse the repository at this point in the history
  3. tidy: Use cmp.Or in a few places (#1337)

    As suggested here: #1326 (comment)
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Charlie Egan authored Jan 14, 2025
    Configuration menu
    Copy the full SHA
    0aedf5c View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2025

  1. Upgrade Roast to v0.6.0 (#1338)

    * Upgrade Roast to v0.6.0
    
    Roast now also on OPA 1.0, and v0.6.0 brings slightly
    faster serialization of terms as well.
    
    Included in this PR too some minor fixes that don't
    deserve their own PR.
    
    Signed-off-by: Anders Eknert <anders@styra.com>
    
    * builtins/test: Use new go range loops
    
    Address linter issue
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    ---------
    
    Signed-off-by: Anders Eknert <anders@styra.com>
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Co-authored-by: Charlie Egan <charlie@styra.com>
    anderseknert and Charlie Egan authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    954df8c View commit details
    Browse the repository at this point in the history
  2. lsp: Rename correctly when conflicting (#1334)

    * lsp: Rename correctly when conflicting
    
    This updates the server's rename quick action to use the same name
    generation conflict resolution logic as the fixer.
    
    This is done by allowing the server's cache to be used as a new file
    provider and consolidating the logic for generating changes required for
    the templating worker and command worker.
    
    This also changes the inlay hints to exit early if the file is not
    parsed. This reduces errors in the server logs when working with empty
    files.
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * chore: Use strings for fixing file content
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * lsp: pass version lookup to ToInput
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * fixer: Add test to show fixes after rename
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * rules: VersionsMap for all instances of input
    
    This adapts the LSP and fixer to use the versionsMap functionality in
    the same way as the linter.
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    ---------
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Charlie Egan authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    faa9c52 View commit details
    Browse the repository at this point in the history
  3. config: Allow loading of .regal.yaml file too (#1339)

    * config: Allow loading of .regal.yaml file too
    
    Fixes #1288
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * config: Choose most specific file
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    
    * Markdown line length lint
    
    * / -> or
    
    ---------
    
    Signed-off-by: Charlie Egan <charlie@styra.com>
    Charlie Egan authored Jan 15, 2025
    Configuration menu
    Copy the full SHA
    5986638 View commit details
    Browse the repository at this point in the history
Loading