Skip to content

Commit b332d5b

Browse files
andrewpollockCharlyReux
authored andcommitted
Workaround for Bioconductor test breakage (#2130)
Enumeration seems to be failing for Bioconductor 3.19: ``` $ GET https://packagemanager.posit.co/__api__/repos/4/packages/a4?bioc_version=3.19 {"code":4,"error":"Package 'a4' not found","payload":null} ``` but works for 3.18 and 3.1 (the bounds of the array returned by `get_bioc_versions()`) /cc @tylfin for visibility
1 parent 1f3c5d0 commit b332d5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

osv/ecosystems/bioconductor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def _enumerate_versions(self,
5757
"""Helper method to enumerate versions from a specific URL."""
5858

5959
versions = []
60+
# Currently breaking on 3.19,
61+
# see https://github.com/google/osv.dev/pull/1477/files#r1575458933
62+
try:
63+
bioc_versions = bioc_versions.remove('3.19')
64+
except ValueError:
65+
pass
6066
for version in bioc_versions:
6167
response = requests.get(
6268
url.format(package=package, bioc_version=version),

0 commit comments

Comments
 (0)