From 081f563d7307950d9c43237ee7cb965261496ca5 Mon Sep 17 00:00:00 2001 From: Holly Gong <39108850+hogo6002@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:08:44 +1100 Subject: [PATCH] fix(exporter): revert ecosystem.txt changes (#2725) https://github.com/google/osv.dev/pull/2707 removed subdirectories from both the ecosystem export functionality and the `ecosystem.txt` list. To ensure a smooth transition for users, keep the `ecosystem.txt` file unchanged for now and then announce this change. TODO: - Announce the removal of subdirectories to users - Remove all ecosystem releases from `ecosystem.txt` - Update exporter doc --- docker/exporter/exporter.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/exporter/exporter.py b/docker/exporter/exporter.py index a3c362b3575..fe455eff26d 100755 --- a/docker/exporter/exporter.py +++ b/docker/exporter/exporter.py @@ -47,11 +47,9 @@ def run(self): """Run exporter.""" if self._ecosystem == "list": query = osv.Bug.query(projection=[osv.Bug.ecosystem], distinct=True) - ecosystems = [ - bug.ecosystem[0] - for bug in query - if bug.ecosystem and ':' not in bug.ecosystem[0] - ] + #TODO(gongh@): remove all ecosystem releases from ecosystem.txt + # after notifying users. + ecosystems = [bug.ecosystem[0] for bug in query if bug.ecosystem] with tempfile.TemporaryDirectory() as tmp_dir: self._export_ecosystem_list_to_bucket(ecosystems, tmp_dir) else: