-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Short description
When trying to build OPA without OCI support, the build fails as per below.
Versions tried and having the issue:
1.10.1
1.9.0
Last version that builds successfully this way: 1.8.0
go build -tags "opa_no_oci netgo" -ldflags '-w -s' .
# github.com/open-policy-agent/opa/v1/plugins/bundle
v1/plugins/bundle/plugin.go:454:17: cannot use callback (variable of type func(ctx context.Context, u download.Update) error) as func(context.Context, download.Update) value in argument to download.NewOCI(conf, client, path, ociStorePath).WithCallback
Steps To Reproduce
- Pull and extract source for 1.10.0.
- go build -tags "opa_no_oci netgo" -ldflags '-w -s' .
Expected behavior
Build succeeds.
Additional context
go version used:
go version go1.25.4 linux/amd64
Metadata
Metadata
Assignees
Labels
No labels