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

build(docs): fix version in rtd builds #4864

Merged
merged 2 commits into from
Jun 19, 2024
Merged

build(docs): fix version in rtd builds #4864

merged 2 commits into from
Jun 19, 2024

Conversation

tigarmo
Copy link
Contributor

@tigarmo tigarmo commented Jun 19, 2024

Readthedocs builds don't fetch tags when cloning the repo. This is a problem for us because Snapcraft's version comes from the git tag, so do a fetch of the tags as a post-checkout step.

Additionally, explicitly install snapcraft itself (via "pip install .") so that the code that gets the version from git actually runs. Note that this already works on "latest" because that builds off of "main" where this fix has already been applied (when moving to canonical-sphinx).

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox run -m lint?
  • Have you successfully run tox run -e test-py310? (supported versions: py39, py310, py311, py312)

Readthedocs builds don't fetch tags when cloning the repo. This is a problem
for us because Snapcraft's version comes from the git tag, so do a fetch of
the tags as a post-checkout step.

Additionally, explicitly install snapcraft itself (via "pip install .") so
that the code that gets the version from git actually runs. Note that this
already works on "latest" because that builds off of "main" where this fix
has already been applied (when moving to canonical-sphinx).
@tigarmo tigarmo changed the base branch from main to hotfix/8.2 June 19, 2024 12:27
@tigarmo
Copy link
Contributor Author

tigarmo commented Jun 19, 2024

image

@tigarmo tigarmo marked this pull request as ready for review June 19, 2024 13:45
Copy link
Contributor

@dariuszd21 dariuszd21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks really good

@tigarmo tigarmo merged commit 3d05bf3 into hotfix/8.2 Jun 19, 2024
9 of 10 checks passed
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

Successfully merging this pull request may close these issues.

3 participants