I’m working on getting some metadata about Golang packages and the package itself
I’ve seen that for some packages Golang proxy doesn’t provide the data for example:
It seems as if the pre-release qualifier has to follow a specific schema (even though this is not documented). When I try to access a (non-existing) “beta.1” pre-release…
not found: github.com/eclipse-kanto/suite-connector@v0.1.0-beta.1: invalid version: unknown revision v0.1.0-beta.1
(This error is valid because no beta.1 exists.)
I played around with several variants and discovered that the pre-release identifier must not contain uppercase characters. (For example, ALPHA, Alpha, and alphA trigger the “invalid escaped version” error, while alpha works fine and triggers the expected “not found” error.)
Well I found the issue in order to know the exact URL for the info endpoint, you can run the following command: go mod download. -json <package_name>@<package_version>
And you are going to get a set of urls regarding package metadata.
So for the above case upper case letters should transform into <uppercase_letter> → !<downcase_letter>