-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Build docs #302
Comments
This is a problem. Would a reasonable fix be to print a major warning but not fail? |
The problem comes from attempting to create a folder, and apparently, they deploy a docker without "write" permissions. |
Hello, is there any plan to fix this and propose a new version ?
|
Yes, I'll look into it and it will be resolved by the end of September, probably sooner. Ideally, we could release a stable version of hifitime, anise, and nyx all at once, but I don't think that's realistic with the current timelines. |
no emergency on my side. I was interested in releasing new rinex versions, it is now feasible since your latest tags, I marked them -alpha as well.
|
Let me know if the changes in the commit above aren't enough. I think that they are. |
Seems good enough ! It will most likely never happen to real users |
This bug is likely still present: https://docs.rs/crate/anise/0.4.3/builds/1345906 |
It's hard to tell what the actual problem is, it seemed more obvious previously is that ?
if so, the
personnaly, I'd rather try to bypass |
the problem is in the RustEmbed most likely creates a file, and that location does not exist. |
I think there are two problems:
So it should be a quick fix. |
Used the |
I don't know why this didn't work ... the data folder should exist: https://github.com/nyx-space/anise/blob/master/Cargo.toml#L27 .
|
include and exclude are tied to the crates io publication right ? It's probably related to how they setup their docker environment, maybe we should reach out to the rust community. FYI The |
From the first response, I would recommend wrapping the folder creation inside: if std::env::var("DOCS_RS").is_err() {
// ... your code here ...
} |
Thanks for opening the issues on the rust organization. I had not seen them. From the tarball, it's clear that the Essentially, change: #[cfg(feature = "embed_ephem")]
#[cfg_attr(docsrs, doc(cfg(feature = "embed_ephem")))]
mod embed; To: #[cfg(feature = "embed_ephem")]
#[cfg(not(feature = "docsrs"))]
mod embed; |
Attempt to fix docsrs build with embed ephem
Redone in #335 |
Bug report
Any library that depends on ANISE + embed_ephem cannot be documented, because cargo --build doc fails when the crates.io docker tries to deploy it:
what the build script does for embed_ephem should not happen when building the docs. I'm not sure what options we have to either bypass the build script or detect within that script that docrs is running
The text was updated successfully, but these errors were encountered: