diff --git a/CHANGELOG.md b/CHANGELOG.md index 02f30dd6..2e67b87c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG + - 0.7.2 (2019-12-30) + * Ignore partial rules when converting packages to objects. + * Fix issue where we would index into packages rather than rules; + sometimes resulting in empty sets for collection references that had at + least some dynamic part in them. + - 0.7.1 (2019-12-25) * Extend `%v` formatting in `sprintf` to work for objects, lists and sets. diff --git a/fregot.cabal b/fregot.cabal index e77a372b..b0120697 100644 --- a/fregot.cabal +++ b/fregot.cabal @@ -1,5 +1,5 @@ Name: fregot -Version: 0.7.1 +Version: 0.7.2 Synopsis: Fugue Rego Toolkit License: Apache-2.0 License-file: LICENSE diff --git a/tests/golden/cli/repl-input.stderr b/tests/golden/cli/repl-input.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/cli/repl-input.stderr +++ b/tests/golden/cli/repl-input.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/break-data.stderr b/tests/golden/repl/break-data.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/break-data.stderr +++ b/tests/golden/repl/break-data.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/break-source.stderr b/tests/golden/repl/break-source.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/break-source.stderr +++ b/tests/golden/repl/break-source.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/debug-cache.stderr b/tests/golden/repl/debug-cache.stderr index 6d78ea74..899c9010 100644 --- a/tests/golden/repl/debug-cache.stderr +++ b/tests/golden/repl/debug-cache.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Loading debug-cache.rego... Loaded package fregot.tests.repl.debug_cache diff --git a/tests/golden/repl/debug-context.stderr b/tests/golden/repl/debug-context.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/debug-context.stderr +++ b/tests/golden/repl/debug-context.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/debug-error.stderr b/tests/golden/repl/debug-error.stderr index b7af8454..8d84b417 100644 --- a/tests/golden/repl/debug-error.stderr +++ b/tests/golden/repl/debug-error.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info fregot (eval error): "debug-error.rego" (line 5, column 3): builtin type error: diff --git a/tests/golden/repl/help.stderr b/tests/golden/repl/help.stderr index e435e72c..8dab5d74 100644 --- a/tests/golden/repl/help.stderr +++ b/tests/golden/repl/help.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Enter an expression to evaluate it. Enter a rule to add it to the current package. diff --git a/tests/golden/repl/input-doc.stderr b/tests/golden/repl/input-doc.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/input-doc.stderr +++ b/tests/golden/repl/input-doc.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/input-yaml.stderr b/tests/golden/repl/input-yaml.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/input-yaml.stderr +++ b/tests/golden/repl/input-yaml.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/load.stderr b/tests/golden/repl/load.stderr index 951f964e..d9aa3f42 100644 --- a/tests/golden/repl/load.stderr +++ b/tests/golden/repl/load.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Loading load.rego... Loaded package fregot.tests.repl.load diff --git a/tests/golden/repl/open.stderr b/tests/golden/repl/open.stderr index d29863d6..a90fb4fa 100644 --- a/tests/golden/repl/open.stderr +++ b/tests/golden/repl/open.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Created new package mypkg1 Rule r added Created new package mypkg2 diff --git a/tests/golden/repl/plain-call.stderr b/tests/golden/repl/plain-call.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/plain-call.stderr +++ b/tests/golden/repl/plain-call.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/rewind.stderr b/tests/golden/repl/rewind.stderr index 17c276f4..bbbbdee5 100644 --- a/tests/golden/repl/rewind.stderr +++ b/tests/golden/repl/rewind.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info fregot (eval error): "rewind.rego" (line 5, column 3): builtin type error: diff --git a/tests/golden/repl/set.stderr b/tests/golden/repl/set.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/set.stderr +++ b/tests/golden/repl/set.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/step-into.stderr b/tests/golden/repl/step-into.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/step-into.stderr +++ b/tests/golden/repl/step-into.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/step-over.stderr b/tests/golden/repl/step-over.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/repl/step-over.stderr +++ b/tests/golden/repl/step-over.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/repl/test.stderr b/tests/golden/repl/test.stderr index 947e5879..cf74c8ff 100644 --- a/tests/golden/repl/test.stderr +++ b/tests/golden/repl/test.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Loading test.rego... Loaded package fregot.tests.repl.test diff --git a/tests/golden/repl/watch-input.stderr b/tests/golden/repl/watch-input.stderr index 07d48864..56c899a1 100644 --- a/tests/golden/repl/watch-input.stderr +++ b/tests/golden/repl/watch-input.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Reloaded watch-input-2.json diff --git a/tests/golden/repl/watch-warn.stderr b/tests/golden/repl/watch-warn.stderr index c4d0233d..3c93f79d 100644 --- a/tests/golden/repl/watch-warn.stderr +++ b/tests/golden/repl/watch-warn.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Restart the with `--watch` to enable watching. diff --git a/tests/golden/types/comprehensions.stderr b/tests/golden/types/comprehensions.stderr index 2bf87370..7f995a3a 100644 --- a/tests/golden/types/comprehensions.stderr +++ b/tests/golden/types/comprehensions.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info diff --git a/tests/golden/types/granular.stderr b/tests/golden/types/granular.stderr index de12850b..acafc40f 100644 --- a/tests/golden/types/granular.stderr +++ b/tests/golden/types/granular.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Loading granular.rego... Loaded package granular diff --git a/tests/golden/types/rules.stderr b/tests/golden/types/rules.stderr index a188c102..84765cdf 100644 --- a/tests/golden/types/rules.stderr +++ b/tests/golden/types/rules.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.7.1 repl - use :help for usage info +fregot v0.7.2 repl - use :help for usage info Loading rules.rego... Loaded package rules