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
{{ message }}
Repository navigation
Changed namespace, but version tags still appear in original namespace #147
Therefore the prior versions drop out of its view when a new one it published, and it isn't possible for people to reference the devcontainer feature by a specific version.
Looks like there is some kind of confusion in how the namespace works and how it's perceived in this case. I wonder if that's because the name of the owner & Feature is same (ie tailscale). Even I was confused for a bit while reviewing devcontainers/devcontainers.github.io#119
I published the first several versions of our devcontainer feature without setting features-namespace or templates-namespace, so they appeared at a default location based on the name of the repository:
As nothing was set, by default the features-namespace and templates-namespace was tailscale/codespace (ie <owner>/<repo>)
I've since updated our workflow to set the namespaces, but new version tags still only appear at the original location.
Apparently, the updated namespace is still the same as the default one. Hence, nothing is expected to change.
The auto-generated devcontainer-collection.json is pushed to the registry with the same namespace as above and no accompanying feature name. The collection file is always tagged as latest.
Activity
samruddhikhandale commentedon Feb 27, 2023
Hi 👋
Looks like there is some kind of confusion in how the namespace works and how it's perceived in this case. I wonder if that's because the name of the owner & Feature is same (ie
tailscale). Even I was confused for a bit while reviewing devcontainers/devcontainers.github.io#119According to https://containers.dev/implementors/features-distribution/#oci-registry, by default, the namespace is
<owner>/<repo>(in your case it istailscale/codespace).As nothing was set, by default the features-namespace and templates-namespace was
tailscale/codespace(ie<owner>/<repo>)Apparently, the updated namespace is still the same as the default one. Hence, nothing is expected to change.
The Feature
tailscaleis always pushed as${REGISTRY}/${NAMESPACE}/${FEATURE}. Hence, https://github.com/tailscale/codespace/pkgs/container/codespace%2Ftailscale is correct with the current workflow.REGISTRY - ghcr.io
NAMESPACE - tailscale/codespace
FEATURE - tailscale
As mentioned in https://containers.dev/implementors/features-distribution/#oci-registry 👇
https://github.com/tailscale/codespace/pkgs/container/codespace is an OCI artifact which contains metadata of Features/Templates. This is how Features/Templates metadata are distributed and is part of the spec.
Let us know if you have any other questions. Feel free to take a look at the Features spec for more details.
Remove custom features-namespace to fix deploy workflow