[Bug 270264] www/gohugo: upgrade/install failure: cannot query module due to -mod=vendor

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 18 May 2023 14:59:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270264

mvharding@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mvharding@gmail.com

--- Comment #4 from mvharding@gmail.com ---
I ran into this issue as well. I have a local poudriere system, but also have
one system where I compile from ports. The latter fails for gohugo from time to
time, but if I do a 'make distclean' it will fix it. I think that the cached go
modules (and there are a lot) can cause the build to fail. I think poudriere
does not use the cached go modules so it does not exhibit the issue.

The cached go stuff is at /usr/ports/distfiles/go/www_gohugo, and I share the
distfiles directory between the machine where I build locally and the machine
where I run poudriere.

I think that the Makefile could maybe be modified to say "try 'make distclean'
if you have a build failure" perhaps?

-- 
You are receiving this mail because:
You are the assignee for the bug.