x/pkgsite: support removing packages in the top-level module, but not in nested modules #39103
What is the URL of the page with the issue?
What did you do?
Initially using https://github.com/GoogleCloudPlatform/govanityurls.git we publish modules directly under
/otel: repo: https://github.com/open-telemetry/opentelemetry-go /collector: repo: https://github.com/open-telemetry/opentelemetry-collector /contrib/otel: repo: https://github.com/open-telemetry/opentelemetry-go-contrib /contrib/collector: repo: https://github.com/open-telemetry/opentelemetry-collector-contrib
Before we had (which we replaced 6 moths ago, and never used):
/: repo: https://github.com/open-telemetry/opentelemetry-go
What did you expect to see?
I would expect all the old packages that we exported previously https://pkg.go.dev/mod/go.opentelemetry.io?tab=packages to be gone.
What did you see instead?
I would expect to have only packages under https://pkg.go.dev/mod/go.opentelemetry.io/otel?tab=packages
The text was updated successfully, but these errors were encountered:
At the moment, we exclude packages based on having a shared path prefix, so removing go.opentelemetry.io would remove all packages with that prefix, including the ones in go.opentelemetry.io/otel.
We can work on a fix for this so that it is on a module level.