"git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "b3f6f511f2a1082bd56b13a3f6794e7fc3ba4862"
Commit 3ffd76c8 authored by Carl Parker's avatar Carl Parker Committed by Facebook GitHub Bot
Browse files

Fix for breadcrumbs displaying "Old version (stable)" on Nightly build (#3333)

Summary:
Previously, `breadcrumbs.html` identified a nightly build version by the prefix "Nightly" which would normally be prepended to the version in `conf.py`. However, the version string is coming through without the "Nightly" prefix, so this change causes `breadcrumbs.html` to key on the substring "dev" instead.

The reason we aren't getting "Nightly" is apparently because the environment variable BUILD_VERSION is available, so `conf.py` is using the value of that env var instead of the version string imported from the `torchaudio` module itself, which actually appears to be incorrect; see below.

If I install torchaudio using

    conda install torchaudio -c pytorch-nightly

then `torchaudio.__version__` returns the incorrect version string:

    2.0.0.dev20230309

Pull Request resolved: https://github.com/pytorch/audio/pull/3333

Reviewed By: mthrok

Differential Revision: D45926466

Pulled By: carljparker

fbshipit-source-id: d5516f2d9f1716c2400d3e9b285bd5d32b4b3a77
parent c12f4734
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &gt;</li> <li><a href="{{ doc.link|e }}">{{ doc.title }}</a> &gt;</li>
{% endfor %} {% endfor %}
<li>{{ title }} &gt;</li> <li>{{ title }} &gt;</li>
{% if 'Nightly' in version %} {% if 'dev' in version %}
<li>Nightly (unstable)</li> <li>Nightly (unstable)</li>
{% elif version_stable in version %} {% elif version_stable in version %}
<li>Current (stable)</li> <li>Current (stable)</li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment