Skip to content

Incorrect download url from build_golang_download_url() #198

@chinyeungli

Description

@chinyeungli

I'm using build_golang_download_url() to generate the download URL, but the resulting link is missing the letter v before the version number.
https://github.com/package-url/packageurl-python/blob/main/src/packageurl/contrib/purl2url.py#L482

For instance,
pkg:golang/golang.org/x/oauth2@0.29.0 returns https://proxy.golang.org/golang.org/x/oauth2/@v/0.29.0.zip which is incorrect. The correct download url should be https://proxy.golang.org/golang.org/x/oauth2/@v/v0.29.0.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions