Hi! I have a python dependency that looks like thi...
# general
a
Hi! I have a python dependency that looks like this in
requirements.txt
Copy code
hdf5_indexer @ git+<https://github.com/jrobinso/hdf5-indexer.git>
but after trying to run anything with it, I get
Copy code
There was 1 error downloading required artifacts:
1. hdf5-indexer 0.5 from git+<https://github.com/jrobinso/hdf5-indexer.git>
    Expected sha256 hash of 63d8aa13ca4c9e5c983b34a1febbbc8b98f6418f06e73e5be01709587985110f when downloading hdf5-indexer but hashed to c108044621a89874df058554a99e345db92578ff7e3919cdc9fd2eafcb764f1a.
the issue seems to be not 100% reproducible I think ? I ran it once and it was fine and then it started failing all of the sudden
the error seem to happen only when using resolves
here's my full configuration
Copy code
(base) vitalybushaev@vitaly-gpu:~/test$ cat requirements.txt
hdf5_indexer @ git+<https://github.com/jrobinso/hdf5-indexer.git>
(base) vitalybushaev@vitaly-gpu:~/test$ cat a.py
import hdf5_indexer


print(dir(hdf5_indexer))
(base) vitalybushaev@vitaly-gpu:~/test$ cat pants.toml
[GLOBAL]
pants_version = "2.21.0"
backend_packages = [
  "pants.backend.python",
  "pants.backend.docker",
  "pants.backend.python.lint.black",
  "pants.backend.python.lint.flake8",
  "pants.backend.python.lint.isort",
]
pants_ignore.add = [
  "!data/voices/",
]
pants_ignore_use_gitignore = false

[subprocess-environment]
env_vars = [
    'DYLD_LIBRARY_PATH'
]

[source]
root_patterns = ["/", "libs"]

[python]
interpreter_constraints = ["CPython==3.10.*"]
enable_resolves=true
default_resolve="gpu"


[python.resolves]
gpu = "3rdparty/python/gpu.lock"
cpu = "3rdparty/python/cpu.lock"
h
Possibly what is happening is that the lockfile is baking in a specific sha, and you are referencing HEAD, which will have moved to a different sha
You need to embed a SHA in the git URL, I assume
I am slightly handwaving here