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

cowstr failed to build on crates.io because of network error #2122

Closed
cehteh opened this issue May 3, 2023 · 6 comments
Closed

cowstr failed to build on crates.io because of network error #2122

cehteh opened this issue May 3, 2023 · 6 comments

Comments

@cehteh
Copy link

cehteh commented May 3, 2023

Crate name

cowstr

Build failure link

https://docs.rs/crate/cowstr/1.0.0-beta2/builds/804480

Additional details

looks there was some network glitch, can you restart doc generation?

[6] Couldn't resolve host name (Could not resolve host: index.crates.io)

@Nemo157
Copy link
Member

Nemo157 commented May 3, 2023

There is no network access during the build. It looks like the threadcell build script attempts to run cargo metadata and fails because of that (I'm not sure why, it should have everything necessary cached from the cargo fetch we run outside the sandbox). That doesn't actually seem to fail the build though, there is another error afterwards

Failed to create logfile: Os { code: 2, kind: NotFound, message: "No such file or directory" }
/opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/conf_test-0.3.1/src/lib.rs:227:49

That seems to be simply a bug in conf_test, it doesn't create the directory it tries to write a log file to (normally compile_file would cause the directory to be created by the rustc invocations, but if there are none the directory won't exist).

@cehteh
Copy link
Author

cehteh commented May 3, 2023 via email

@Nemo157
Copy link
Member

Nemo157 commented May 3, 2023

Yeah, I'm not entirely sure why cargo's attempting to access the network here, afaik both builds should have been using the new sparse registry protocol since that was merged back in march, so it's not to do with that behaving differently. Using --offline should hopefully avoid it.

@cehteh
Copy link
Author

cehteh commented May 3, 2023 via email

@syphar
Copy link
Member

syphar commented May 20, 2023

@cehteh @Nemo157 I see the latest beta-builds are passing now.

So is this still an open issue here?

@cehteh
Copy link
Author

cehteh commented May 20, 2023

all ok now i changed a lot stuff in the crate

@cehteh cehteh closed this as completed May 20, 2023
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

3 participants