-
Notifications
You must be signed in to change notification settings - Fork 2.4k
GitVersion.intersects errors sometimes when no =reference is given #36183
Copy link
Copy link
Closed
Labels
Milestone
Description
Steps to reproduce
Follows from #36134
$ spack python -c 'from spack.spec import Spec; s = Spec("[email protected]"); s.intersects("[email protected]")'
Error message
$ spack python -c 'from spack.spec import Spec; s = Spec("[email protected]"); s.intersects("[email protected]")'
Traceback (most recent call last):
File "/usr/lib/python3.8/code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 1, in <module>
File "/home/culpo/github/spack/lib/spack/spack/spec.py", line 3553, in intersects
if not self.versions.intersects(other.versions):
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 1059, in intersects
return self.overlaps(other)
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 108, in coercing_method
return method(a, b, *args, **kwargs)
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 1050, in overlaps
if self[s].overlaps(other[o]):
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 488, in overlaps
return self.intersects(other)
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 111, in coercing_method
return getattr(ca, method.__name__)(cb, *args, **kwargs)
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 108, in coercing_method
return method(a, b, *args, **kwargs)
File "/home/culpo/github/spack/lib/spack/spack/version.py", line 619, in intersects
n = min(len(v1), len(v2))
TypeError: object of type 'NoneType' has no len()
Information on your system
- Spack: 0.20.0.dev0 (b54d208)
- Python: 3.8.10
- Platform: linux-ubuntu20.04-icelake
- Concretizer: clingo
General information
- I have run
spack debug reportand reported the version of Spack/Python/Platform - I have searched the issues of this repo and believe this is not a duplicate
- I have run the failing commands in debug mode and reported the output
Reactions are currently unavailable