Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Sep 2021 04:06:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258359] Mk/Uses/go.mk: fix gomod-clean target for case when lang/go is not installed
Message-ID:  <bug-258359-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258359

            Bug ID: 258359
           Summary: Mk/Uses/go.mk: fix gomod-clean target for case when
                    lang/go is not installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: dmgk@freebsd.org
          Reporter: ports.maintainer@evilphi.com
             Flags: maintainer-feedback?(dmgk@freebsd.org)
          Assignee: dmgk@freebsd.org

Created attachment 227753
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D227753&action=
=3Dedit
Fix gomod-clean target for case when go is not installed

Mk/Uses/go.mk breaks cleaning targets if go is not installed:

# make distclean
=3D=3D=3D> benchmarks/hey
=3D=3D=3D>  Cleaning for hey-0.1.4_1
=3D=3D=3D>  Cleaning Go module cache
env: /usr/local/bin/go: No such file or directory
*** Error code 127

Suggested fix: wrap the "go clean -modules" command with a test that will
silently fail if go is not installed.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258359-7788>