Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove path from default registry #433

Closed
wants to merge 3 commits into from

Conversation

cristianrgreco
Copy link
Collaborator

No description provided.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Dec 23, 2022
@@ -9,7 +9,7 @@ import { RegistryAuthLocator } from "./registry-auth-locator";
import { log } from "../logger";
import { AuthConfig } from "../docker/types";

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

@HofmeisterAn HofmeisterAn Dec 23, 2022

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
Collaborator Author

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

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@cristianrgreco cristianrgreco 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
Collaborator Author

Superseded by #484

@cristianrgreco cristianrgreco deleted the remove-path-default-registry branch March 7, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Improvements that do not change functionality patch Backward compatible bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants