Skip to content

Commit

Permalink
fix(exporter): revert ecosystem.txt changes (google#2725)
Browse files Browse the repository at this point in the history
google#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
  • Loading branch information
hogo6002 authored Oct 9, 2024
1 parent e2312da commit 081f563
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docker/exporter/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 081f563

Please sign in to comment.