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

Upgrade opa deps to 1.0 and get tests passing #2274

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

simonbaird
Copy link
Member

We probably want to also update conftest, so this is a draft for now. I'm pushing it to see if the acceptance tests will pass.

One idea: The "Use v1 compatible if syntax.." commit can be split out and merged early I think.

OPA v1.0 has for backwards compatility to help people migrate. So
all the deps except for cmd and internal are now under the v1
package.
Copy link

codecov bot commented Jan 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.76%. Comparing base (0749535) to head (dcdc1ca).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2274   +/-   ##
=======================================
  Coverage   72.76%   72.76%           
=======================================
  Files          89       89           
  Lines        7674     7674           
=======================================
  Hits         5584     5584           
  Misses       2090     2090           
Flag Coverage Δ
generative 72.76% <ø> (ø)
integration 72.76% <ø> (ø)
unit 72.76% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/inspect/inspect_policy.go 67.11% <ø> (ø)
internal/documentation/asciidoc/rego/rego.go 0.00% <ø> (ø)
internal/evaluator/conftest_evaluator.go 81.14% <ø> (ø)
internal/opa/inspect.go 74.28% <ø> (ø)
internal/opa/output.go 87.87% <ø> (ø)
internal/opa/rule/rule.go 74.39% <ø> (ø)
internal/rego/oci/oci.go 95.54% <ø> (ø)
internal/rego/purl/purl.go 100.00% <ø> (ø)
internal/rego/sigstore/signature.go 100.00% <ø> (ø)
internal/rego/sigstore/sigstore.go 93.63% <ø> (ø)

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.

1 participant