Skip to content

[ci] Fix broken "build docs" in nightly_docs.yml #538

Closed

Description

@notmandatory

There is currently a regression in +nightly rustdocs that is breaking our CI docs build.

I believe this is caused by rust-lang/rust#93476

I think we have two options:

  1. For the docs CI jobs remove the --cfg docsrs flag and build docs with +stable
  2. Wait for rustdocs in +nightly to be fixed

Activity

  1. added
    discussion
    documentation
    on Feb 2, 2022
  2. notmandatory commented on Feb 2, 2022

    @notmandatory
    ContributorAuthor

    I prefer option 1, even though we won't see which feature is required to enable feature gated code, we can keep documenting it with the docsrs attribute and when the feature(doc_cfg) is available in +stable turn it back on.

    If we take option 2 the issue may get fixed in the next few days but we can still run into some other regression in a future +nightly and will have our CI randomly broken again.

  3. self-assigned this
    on Feb 2, 2022
  4. changed the title [-][CI] Use +stable for rustdocs and disable `feature(doc_cfg)` until available in +stable[/-] [+][CI] Fix broken "build docs" in Publish nightly_docs.yml[/+] on Feb 2, 2022
  5. changed the title [-][CI] Fix broken "build docs" in Publish nightly_docs.yml[/-] [+][CI] Fix broken "build docs" in nightly_docs.yml[/+] on Feb 2, 2022
  6. afilini commented on Feb 4, 2022

    @afilini
    Contributor

    Maybe a third option is to pin a specific nightly version that we know is working fine?

    It's not the end of the world to lose the doc_cfg feature, but I would like to replicate the environment in docs.rs as much as we can, so that we can see if anything is wrong before publishing a release

  7. notmandatory commented on Feb 4, 2022

    @notmandatory
    ContributorAuthor

    Good idea! I forgot we can use specific nightly builds. I'll put together a PR to do that.

  8. changed the title [-][CI] Fix broken "build docs" in nightly_docs.yml[/-] [+][ci] Fix broken "build docs" in nightly_docs.yml[/+] on Feb 4, 2022
  9. added a commit that references this issue on May 4, 2024
    e745122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussiondocumentation

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions