[Bug 263390] security/lego: Fails to build without git installed

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Apr 2022 21:11:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263390

--- Comment #3 from Matthew Horan <matt@matthoran.com> ---
I spoke with a Go maintainer about this, it seems that the issue is triggered
by the ports tree .git directory. I presume when the port is built by the
builder this directory is mounted into a jail which does not have git. Go will
then see there's a .git directory and try to grab the SHA, which obviously
doesn't work.

So this could be fixed for FreeBSD ports by adding that flag by default (or
optionally), or otherwise making the .git directory unavailable to the ports
builder. This could arguably be something that needs to be addressed in Go as
well, so I'll leave that to the FreeBSD Go maintainers to decide where to go
with this.

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