Page MenuHomeSoftware Heritage

golang: Ensure to include dev version when no releases exist
ClosedPublic

Authored by anlambert on Mon, Sep 19, 5:10 PM.

Details

Summary

Some go packages only have a development version not listed by the
@v/list endpoint but returned by the @latest endpoint.

So ensure to return it in get_versions method or it will be missed
by the loader.

Related to T4124

Diff Detail

Repository
rDLDBASE Generic VCS/Package Loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D8506 (id=30629)

Rebasing onto 0c599bdc81...

Current branch diff-target is up to date.
Changes applied before test
commit c4370009d0a59aafbd3f4bdaf122bf738e16d54c
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon Sep 19 10:38:41 2022 +0200

    golang: Ensure to include dev version when no releases exist
    
    Some go packages only have a development version not listed by the
    @v/list endpoint but returned by the @latest endpoint.
    
    So ensure to return it in get_versions method or it will be missed
    by the loader.
    
    Related to T4124

See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/879/ for more details.

This revision is now accepted and ready to land.Tue, Sep 20, 11:47 AM