Skip to content

Remove path from default registry - #433

Closed
cristianrgreco wants to merge 3 commits into
mainfrom
remove-path-default-registry
Closed

Remove path from default registry#433
cristianrgreco wants to merge 3 commits into
mainfrom
remove-path-default-registry

Conversation

@cristianrgreco

Copy link
Copy Markdown
Collaborator

No description provided.

@cristianrgrecocristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Dec 23, 2022
import { AuthConfig } from "../docker/types";

const DEFAULT_REGISTRY = "https://index.docker.io/v1/";
const DEFAULT_REGISTRY = "https://index.docker.io";

@HofmeisterAnHofmeisterAnDec 23, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think https://index.docker.io/v1/ is correct. That's what Docker Desktop resolves too, see:

What I meant by my comment in Slack is, that the GitLab example uses https://index.docker.io as key, but our default key is https://index.docker.io/v1/. Might be addressed due to key.includes(registry).

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HofmeisterAn Understood, and I found that for the credential provider it didn't work in this case. We check the substring when listing the credentials, but when we go to get the credential we lookup the original registry, which isn't found

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed! Quality Gate passed

BugA0 Bugs
VulnerabilityA0 Vulnerabilities
Security HotspotA0 Security Hotspots
Code SmellA0 Code Smells

No Coverage information No Coverage information
0.0%0.0% Duplication

@cristianrgrecocristianrgreco added enhancement New feature or request maintenance Improvements that do not change functionality and removed bug Something isn't working enhancement New feature or request labels Mar 7, 2023
@cristianrgreco

Copy link
Copy Markdown
CollaboratorAuthor

Superseded by #484

@cristianrgreco
cristianrgreco deleted the remove-path-default-registry branch March 7, 2023 13:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceImprovements that do not change functionalitypatchBackward compatible bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@cristianrgreco@HofmeisterAn