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

detached does not work with EXTRA_INDEX_URL #1919

Open
RichardOberdieck opened this issue Feb 24, 2025 · 0 comments
Open

detached does not work with EXTRA_INDEX_URL #1919

RichardOberdieck opened this issue Feb 24, 2025 · 0 comments

Comments

@RichardOberdieck
Copy link

Description

  • When using detached=true, the EXTRA_INDEX_URL is ignored. Using hatch 1.14.0

To reproduce

  1. hatch new test-detached
  2. Add this to the pyproject.toml
[tool.hatch.envs.default.env-vars]
PIP_INDEX_URL = "https://pypi.python.org/simple/"
PIP_EXTRA_INDEX_URL = <a-private-index>

[tool.hatch.envs.detached]
detached = true
dependencies = ["requests", "click", "pymsteams", "<package-name-only-found-in-extra-index>"]

[tool.hatch.envs.detached.scripts]
checking = "python -m checking {args}"
  1. Run hatch run detached:checking

Result

ERROR: Ignored the following versions that require a different python version: 0.2.5 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement <package-name-only-found-in-extra-index> (from versions: none)
ERROR: No matching distribution found for <package-name-only-found-in-extra-index>

Expected

It should not fail

Workaround

Remove detached=true

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

No branches or pull requests

1 participant