You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publish a package to a private registry (requires auth to publish) that depends on another package in that private registry (requires auth to download).
What feature or behavior is this required for?
Working with private registry
How could we solve this issue? (Not knowing is okay!)
I think the registry needs to explicitly inform cargo that it requires auth (auth-required) in the config.json here:
Publish a package to a private registry (requires auth to publish) that depends on another package in that private registry (requires auth to download).
Working with private registry
I think the registry needs to explicitly inform cargo that it requires auth (
auth-required
) in theconfig.json
here:nexus-repository-cargo/src/main/java/org/sonatype/nexus/plugins/cargo/registry/CargoRegistryFacetImpl.java
Line 160 in 57760b6
as per rust-lang/cargo#10920
and https://doc.rust-lang.org/nightly/cargo/reference/registry-index.html#index-configuration
but only if it is a private registry. Public registries should have that set to false I guess.
I suppose we could make the registry accessible for read to anonymous users, that would work around the limitation.
Without the
auth-required: true
config value,cargo publish
fails with:The text was updated successfully, but these errors were encountered: