Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Golang ID parser misparses golang "native" libraries #182

Open
waynebeaton opened this issue Sep 23, 2022 · 0 comments
Open

Golang ID parser misparses golang "native" libraries #182

waynebeaton opened this issue Sep 23, 2022 · 0 comments

Comments

@waynebeaton
Copy link
Member

waynebeaton commented Sep 23, 2022

The following line from a go.sum file:

golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 h1:QyVthZKMsyaQwBTJE04jdNN0Pp5Fn9Qga0mrgxyERQM=

Is currently transformed into:

go/golang/golang.org%2Fx/sys/v0.0.0-20220406163625-3f8b81556e12

It should be:

go/golang/x/sys/3f8b81556e12

This then maps to source found at a specific commit in GitHub:

https://github.com/golang/sys/archive/3f8b81556e12aefb24de6d626ad5b2c1f7253818.zip

I'm not quite sure at this point how to map the abridged commit id, 3f8b81556e12 to the full id, 3f8b81556e12aefb24de6d626ad5b2c1f7253818. There may be an API that we can leverage...

Update:

The URL https://github.com/golang/sys/archive/3f8b81556e12.zip redirects to the right place. Finding source should be relatively easy.

@waynebeaton waynebeaton changed the title Golang ID parser misparses golang " Golang ID parser misparses golang "native" libraries Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant