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

No config.json #128

Open
hpenne opened this issue Mar 20, 2024 · 5 comments
Open

No config.json #128

hpenne opened this issue Mar 20, 2024 · 5 comments

Comments

@hpenne
Copy link

hpenne commented Mar 20, 2024

We have a Panamax mirror at work, but it does not seem to serve up the expected config.json file at the root. I've tried to fetch it with curl, but get nothing. I need this for some automated tools that need to find the API URL through the config.json.
We have another Artifactory-based mirror, and that returns the config.json as expected.
Any idea what could be wrong?

@k3d3
Copy link
Member

k3d3 commented Mar 21, 2024

This might be an inconsistency in the mirror. Whereabouts is the config.json supposed to be located - in the root of the git repo, or as part of what HTTP serves? The former I have accounted for, but if the latter, I might not actually know about its existence.

@hpenne
Copy link
Author

hpenne commented Mar 22, 2024 via email

@k3d3
Copy link
Member

k3d3 commented Jun 6, 2024

So I tested this out, and it seems to work as expected:

image

Are you looking for config.json at this path?

@dacechavez
Copy link

I did something similar to #120 on my local network.

Out of the box, without configuring cargo for panamax, cargo fails to fetch https://index.crates.io/config.json

It seems to work with "index" in the url but thats not what cargo is fetching by default.

I think that if panamax returns config.json in the url above, then no client configuration is required, as in no need to edit .cargo/config.

@SMZCC
Copy link

SMZCC commented Jul 29, 2024

I have encountered the problem: Could not resolve host :index.crates.io though the configurations like the following(win10):

So I tested this out, and it seems to work as expected:

image

Are you looking for config.json at this path?

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

No branches or pull requests

4 participants