Skip to content

Change module path to github.com/opencloud-eu/reva/v3 - #1019

Merged
aduffeck merged 2 commits into
opencloud-eu:mainfrom
aduffeck:reva-v3-module-path
Nov 17, 2026
Merged

aduffeck merged 2 commits into
opencloud-eu:mainfrom
aduffeck:reva-v3-module-path

Conversation

@aduffeck

Copy link
Copy Markdown
Member

No description provided.

@butonic

butonic commented Nov 17, 2026

Copy link
Copy Markdown
Member

The rename itself looks clean (go build ./..., gofmt -l . and go mod tidy -diff pass, no reva/v2 imports left), but two things bite:

  1. We now link a second copy of reva. pkg/app/registry/micro/manager.go and pkg/micro/ocdav/service.go import github.com/opencloud-eu/opencloud/pkg/registry, and opencloud v1.1.0 requires reva/v2. Before the rename that was the main module, now it resolves to reva/v2 v2.28.0:
$ go mod why -m github.com/opencloud-eu/reva/v2
github.com/opencloud-eu/reva/v3/pkg/app/registry/micro
github.com/opencloud-eu/opencloud/pkg/registry
github.com/opencloud-eu/reva/v2/pkg/registry

oreg.GetRegistry() now initializes the global registry of the v2 copy, not ours. Unless cmd/revad/runtime calls registry.Init, v3's registry stays nil, e.g. for an ocdav service started via ocdav.Service(). Then Selector.Next in pkg/rgrpc/todo/pool/selector.go skips the lookup and dials eu.opencloud.api.gateway as if it were an address. IMO we should use reva's own pkg/registry.GetRegistry() (or pass the registry in as an option) instead of importing opencloud here. That kills the cycle and the reva/v2 v2.28.0 // indirect requirement. The test helpers (tests/helpers/helpers.go, tests/integration/grpc/ocm_share_test.go) also import opencloud, so they keep the cycle alive for the next bump.

  1. v3.0.0 is already tagged at 8fb379c, which still declares module github.com/opencloud-eu/reva/v2. So go get github.com/opencloud-eu/reva/[email protected] fails with "module declares its path as ...", and the /v2 path rejects a v3 tag. The proxy has probably cached it already, so the first usable v3 will have to be v3.0.1 (and we might want to retract v3.0.0 in go.mod). CHANGELOG.md and release-config.ts still talk about 3.0.0.

related: backports to stable-2.x will conflict on every import line now, the backport tool won't rewrite reva/v3 to reva/v2.

@aduffeck
aduffeck merged commit c3e4c16 into opencloud-eu:main Nov 17, 2026
16 of 19 checks passed
@openclouders openclouders mentioned this pull request Nov 17, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants