GNU bug report logs -
#69827
[PATCH 1/3] build-system/go: Add subdir parameter to go-version->git-ref.
Previous Next
Reported by: Christina O'Donnell <cdo <at> mutix.org>
Date: Sat, 16 Mar 2024 10:28:02 UTC
Severity: normal
Tags: patch
Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Oleg,
Thanks for having a look at this!
I don't believe you copied me in the last email so I didn't see your
email when it went out.
> Just a clarifying question. Do we definitely need to know
> anything about the folder structure where go.mod governs the
> module definition?
> There is an API https://pkg.go.dev/ where the most of go projects
> are registered, would it be easier just query it directly?
pkg.go.dev gets its sources from proxy.golang.org, and pkg.go.dev
focuses mainly on building and hosting documentation [1]. It doesn't
expose an API for fetching version info [2].
We're already querying proxy.golang.org to get the latest version, and
that response contains information about the sub-directory and git tag,
so we may as well use it.
Kind regards,
Christina
[1] https://pkg.go.dev/about
[2] https://pkg.go.dev/cmd/api
This bug report was last modified 307 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.