librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.12k stars 202 forks source link

Elm packages not updating / up to date #2347

Open razzeee opened 5 years ago

razzeee commented 5 years ago

Bugs

Before submitting a bug report:

The packages for elm are not updating, probably since the release of elm 0.19. https://libraries.io/elm shows the latest update on the 25th july. Also the main elm repo changed from elm-lang to elm and most packages have been moved to elm

katzj commented 5 years ago

It looks like the elm package site has removed their feed of new packages (https://github.com/librariesio/dispatch/blob/master/dispatch.rb#L111) that we were using

SidneyNemzer commented 5 years ago

Indeed, that route was removed a while ago (elm/package.elm-lang.org@0e9fe67696fa14838098283e6eb97a9ca51cf91d).

I assume we don't want to just request package.elm-lang.org/all-packages? Maybe that's OK though?

There's an interesting route, package.elm-lang.org/all-packages/since/:number. It seems like the number is incremented for new versions of any package. When I tested it just now, https://package.elm-lang.org/all-packages/since/8408 returns one package, https://package.elm-lang.org/all-packages/since/8409 returns none. Lower numbers return more packages.

EDIT: Evan wrote about the route in a commit:

The overall goal here is that when someone asks for /all-packages/since/1024 they are served only the fraction they are missing, not the whole history.

https://github.com/elm/package.elm-lang.org/commit/46141ea8db4d9759ed8f80ffa06ca08e2953ca8c#diff-ff7cfa814d898e18ccdb17ca62f0ff5e