Skip to content

OPA build problem with OCI disabled #8070

@mg0083

Description

@mg0083

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

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions