Skip to content

Linking to pip index page broken #7130

@hoefling

Description

@hoefling

Environment

  • pip version: 19.2.3
  • Python version: 3.6
  • OS: Linux

Description

The index ref in pips objects.inv leads to a non existent page https://pip.pypa.io/en/stable/pip

Expected behavior

The index ref in pips objects.inv should reference https://pip.pypa.io/en/stable/

How to Reproduce

  1. create new Sphinx project
  2. add pip docs to intersphinx mapping
  3. reference index page (maybe more are affected)
  4. rendered link leads to nowhere

Output

$ sphinx-quickstart -p spam -a eggs -v 0.1 -r 0.1 -l en --sep --ext-intersphinx
# add pip to intersphinx mapping
$ sed -i 's;^intersphinx_mapping.*$;intersphinx_mapping = {"pip": ("https://pip.pypa.io/en/stable/", None)};' source/conf.py
# write dummy index
$ echo ':doc:`pip:index`' > source/index.rst
# run links validation
$ sphinx-build -Eab linkcheck source/ build
Running Sphinx v2.2.0
loading translations [en]... done
loading intersphinx inventory from https://pip.pypa.io/en/stable/objects.inv...
building [mo]: all of 0 po files
building [linkcheck]: all source files
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index                                                                                                     
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index                                                                                                      
(line    1) broken    https://pip.pypa.io/en/stable/pip - 404 Client Error: Not Found for url: https://pip.pypa.io/en/stable/pip

build finished with problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationstate: blockedCan not be done until something else is donetype: bugA confirmed bug or unintended behaviortype: docsDocumentation related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions