-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Feature flag: MkDocs use latest has its logic inverted #10402
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
Comments
@ericholscher are we OK just inverting this logic or do we want to do something before making the change? I'd like to start installing the latest MkDocs for projects instead of an old version 😄 |
I created a new feature flag called `INSTALL_LATEST_CORE_REQUIREMENTS` that does not depend on any other feature flag. Its goal is to always install the latest Python packages. We are trying to move away from pinning the dependencies on our side and telling users to do that on their side if they want to have reproducible builds over time. I think this is the best outcome for new projects since they will immediately use the latest versions of everything instead of old (and maybe broken) dependencies. I propose to set a particular date for this feature flag and make new projects to start building with all the latest dependencies. This will, at least, stop making the problem bigger. Later, we can decide how to communicate to old projects that we are going to install the latest requirements and if they don't want that, they should pin their dependencies. We can follow our new and shiny deprecation path we have built and tested in the last month. Related readthedocs/meta#8 Related #9562 Related #10402 Related #9081
@humitos I'm 👍 on unbreaking mkdocs, so let's do it. Alternatively, we just remove the feature flag, if old projects were already upgraded? |
I'll keep the flag for now, but fixing the logic as the first step. We will be using #10508 sooner than later anyways. |
The logic was inverted and we were installing old MkDocs version to projects with `USE_MKDOCS_LATEST` feature flag. Closes #10402
* MkDocs: fix `USE_MKDOCS_LATEST` feature flag logic The logic was inverted and we were installing old MkDocs version to projects with `USE_MKDOCS_LATEST` feature flag. Closes #10402 * MkDocs: remove `USE_MKDOCS_LATEST` This is not required anymore since the logic was inverted and we were installing always the latest version for old projects, but the old version for new projects. It's better to have all of them installing the latest version and call it a day :)
* Build: install all the latest Python "core requirements" I created a new feature flag called `INSTALL_LATEST_CORE_REQUIREMENTS` that does not depend on any other feature flag. Its goal is to always install the latest Python packages. We are trying to move away from pinning the dependencies on our side and telling users to do that on their side if they want to have reproducible builds over time. I think this is the best outcome for new projects since they will immediately use the latest versions of everything instead of old (and maybe broken) dependencies. I propose to set a particular date for this feature flag and make new projects to start building with all the latest dependencies. This will, at least, stop making the problem bigger. Later, we can decide how to communicate to old projects that we are going to install the latest requirements and if they don't want that, they should pin their dependencies. We can follow our new and shiny deprecation path we have built and tested in the last month. Related readthedocs/meta#8 Related #9562 Related #10402 Related #9081 * Build: remove deprecated dependencies * Build: install latest core requirements when using Conda * Docs: update default versions documentation to match the changes * Feedback from review Do not install `sphinx-rtd-theme` and clarify the docstring. * Update documentation
Take a look at this code,
readthedocs.org/readthedocs/doc_builder/python_environments.py
Lines 212 to 216 in bcf45cd
It seems when
DEFAULT_TO_MKDOCS_0_17_3=False
andUSE_MKDOCS_LATEST=True
, we are installingmkdocs<1.1
when we should be installingmkdocs
(latest).Reverting this logic is easy. However, we should take a look at our data in Metabase to know how many projects this will affect and decide what/how to do.
Related #9779
The text was updated successfully, but these errors were encountered: