Join GitHub today
Implement Download Protocol's @latest Endpoint #243
The Download Protocol mentions this endpoint
From vgo's source code, this seem to have changed to
Athens needs to add this URL and get the latest RevInfo for a package from the ultimate source of truth (github, gitlab etc) -- This is because asking for the "latest" is always asking for the package's latest commit, regardless of what we have cached.
This is how I think of implementing it:
Appreciate any feedback :)
@michalpristas As of today, Vgo will fail if we return
Benefit: Makes Athens only work with tagged modules which makes it cleaner, easier to reason about, and encourages the community to tag their stuff.
Drawback: vgo will need to be updated for this option to work, and significantly change the Download Protocol from its original proposal.