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

Support protocol = "http" in OCI registry config #23

Merged
merged 1 commit into from
May 22, 2024

Conversation

itowlson
Copy link
Contributor

This is useful/required for local registries e.g.

default_registry = "localhost:5000"

[registry."localhost:5000"]
type = "oci"
protocol = "http"

@itowlson itowlson force-pushed the oci-allow-http-protocol branch from c5dd332 to 6ad797f Compare May 22, 2024 01:28
@itowlson itowlson force-pushed the oci-allow-http-protocol branch from 6ad797f to 987c078 Compare May 22, 2024 01:34
.as_ref()
.is_some_and(|cfg| cfg.platform_resolver.is_some())
{
if client_config.platform_resolver.is_some() {
Error::InvalidConfig(anyhow::anyhow!(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was a bit puzzled by this line. It looks like it constructs the Error and then drops it rather than returning it. But when I tried changing it to return the Error, the CI failed with this error message. So I've left it along but I feel like I'm missing something...!

Copy link
Collaborator

Choose a reason for hiding this comment

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

That is definitely broken!

Copy link
Collaborator

Choose a reason for hiding this comment

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

#24

Copy link
Collaborator

@lann lann left a comment

Choose a reason for hiding this comment

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

I'll probably be overhauling the config file in the not-too-distant future but this looks good!

@lann lann merged commit ce7d12d into bytecodealliance:main May 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants