~sircmpwn/godocs.io

gddo: gddo-server: Fix error fetching stdlib v1 APPLIED

Adnan Maolood: 1
 gddo-server: Fix error fetching stdlib

 1 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/godocs.io/patches/23411/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gddo] gddo-server: Fix error fetching stdlib Export this patch

Using the version "latest" caused problems when fetching the standard
library. Use the resolved latest version instead.
---
 gddo-server/fetch.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gddo-server/fetch.go b/gddo-server/fetch.go
index ba795b7..39a0218 100644
--- a/gddo-server/fetch.go
+++ b/gddo-server/fetch.go
@@ -93,6 +93,9 @@ func (s *Server) fetch(ctx context.Context, modulePath, version string) error {
		if err := s.db.PutModule(ctx, mod); err != nil {
			return err
		}

		// Use latest version
		version = latest
	}

	// Retrieve module source code.
-- 
2.32.0
Thanks!

To git@git.sr.ht:~sircmpwn/gddo
   22cd4e8..b136038  master -> master