-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Add a node local scheme without dirty information? #962
Comments
What's the use case you wan@t to support with that So far I intentionally left this out as it protects people from bad mistakes in the release process Without a good use case I'd rather not include the feature |
We are building documentation on readthedocs.org. This build injects some extra files and some additional configuration in existing files. I could potentially ignore the former, but can't really do anything about the latter. As a result, all of the builds come out as dirty, e.g. https://ragna--101.org.readthedocs.build/en/101/references/rest-api/
Could you elaborate on that. What does not having a dirty information protect users from? And how does that relate to the fact that there is the |
It's actually a quite common occurrence that people starting to ramp up project management create setups where whats released is not whats commited Those mistakes in ci are commonly missed unless it triggers visible state I'm curious why your RTD build actually needs to create a dirty worktree, chances are it doesn't As for the no local scheme, it's quite a old contribution that I do regret, I should properly deprecate it |
I haven't looked into the actual changes, but rather on the files that were touched:
Fair enough. With that context, my suggestion does not make a lot of sense. |
I recall that mkdocs specifically supports configuration Imports for having overrides on builds I'm unfamiliar with conda, but it sounds like your setup does more than necessary As for the js file, it sounds like it should either be pinned,or git ignored |
Sorry for taking forever to get back here. I finally had a closer look into what is happening.
Assuming RTDs process is smart enough to not touch a file if it is already properly configured, the only thing we could do here is put these options into our regular configuration file and make the linked files dummies. But I don't think the assumption will hold given the I guess our best bet is to find a pre-install hook and set the |
RTD has some hooks like
Meaning, setting |
Currently there are only options that either include the information of a dirty workdir either directly (
dirty-tag
) or indirectly through time (node-and-date
/node-and-timestamp
). The only other option is to turn off the local tag completely withno-local-version
.I would like to have a
node
scheme that includes the information of the current commit, but ignores any changes in the workdir.Happy to send a PR if this proposal is accepted.
The text was updated successfully, but these errors were encountered: