Skip to content

feat(echo): add Echo:npm ecosystem with +echo.N ordering#5589

Open
LaizaAngrest wants to merge 3 commits into
google:masterfrom
LaizaAngrest:add-echo-npm-support
Open

feat(echo): add Echo:npm ecosystem with +echo.N ordering#5589
LaizaAngrest wants to merge 3 commits into
google:masterfrom
LaizaAngrest:add-echo-npm-support

Conversation

@LaizaAngrest

Copy link
Copy Markdown
Contributor

npm/SemVer excludes build metadata from precedence, so delegate Echo:npm to a SemVer sort key composed with the +echo.N build number.

npm/SemVer excludes build metadata from precedence, so delegate Echo:npm
to a SemVer sort key composed with the +echo.N build number.
another-rex
another-rex previously approved these changes Jul 8, 2026

@another-rex another-rex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a formatting issue, but other than that LGTM!

--- osv/ecosystems/_ecosystems_test.py
+++ osv/ecosystems/_ecosystems_test.py
@@ -121,8 +121,7 @@
     self.assertLess(
         echo_npm.sort_key('2.14.2+echo.1'), echo_npm.sort_key('2.14.2+echo.2'))
     self.assertLess(
-        echo_npm.sort_key('2.14.2+echo.2'),
-        echo_npm.sort_key('2.14.2+echo.10'))
+        echo_npm.sort_key('2.14.2+echo.2'), echo_npm.sort_key('2.14.2+echo.10'))
     self.assertLess(
         echo_npm.sort_key('2.14.2+echo.1'), echo_npm.sort_key('2.14.3'))

@another-rex

Copy link
Copy Markdown
Contributor

/gcbrun

@LaizaAngrest

Copy link
Copy Markdown
Contributor Author

@another-rex Fixed the formatting — thanks for the review!

@another-rex

Copy link
Copy Markdown
Contributor

/gcbrun

@another-rex

Copy link
Copy Markdown
Contributor

/gcbrun

@another-rex another-rex enabled auto-merge (squash) July 10, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants