Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2023 18:52:14 GMT
From:      Lewis Cook <lcook@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 365c8812950b - main - devel/golangci-lint: Set MAKE_ENV during shell completion generation
Message-ID:  <202308191852.37JIqEtQ080684@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook:

URL: https://cgit.FreeBSD.org/ports/commit/?id=365c8812950b1eccd29a6d63731a9bdd1d87fe29

commit 365c8812950b1eccd29a6d63731a9bdd1d87fe29
Author:     Lewis Cook <lcook@FreeBSD.org>
AuthorDate: 2023-08-19 18:13:43 +0000
Commit:     Lewis Cook <lcook@FreeBSD.org>
CommitDate: 2023-08-19 18:51:31 +0000

    devel/golangci-lint: Set MAKE_ENV during shell completion generation
    
    During this process, Go looks for `$XDG_CACHE_HOME`
    which is initially undefined for the build cache
    directory.  Therefore, during Poudriere builds, we
    attempt to write to  `/nonexistent` and subsequently
    fail.  Setting `MAKE_ENV` resolves that.
    
    Reported by:    pkg-fallout
---
 devel/golangci-lint/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/devel/golangci-lint/Makefile b/devel/golangci-lint/Makefile
index 7125b2260b54..0a309eb7b48c 100644
--- a/devel/golangci-lint/Makefile
+++ b/devel/golangci-lint/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	golangci-lint
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.54.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	lcook@FreeBSD.org
@@ -38,7 +39,7 @@ COMPLETIONS_PLIST_FILES=	share/bash-completion/completions/${PORTNAME} \
 
 post-install-COMPLETIONS-on:
 .for _shell in bash fish zsh
-	${GO_WRKDIR_BIN}/${PORTNAME} completion ${_shell} \
+	${SET_ENV} ${MAKE_ENV} ${GO_ENV} ${GO_WRKDIR_BIN}/${PORTNAME} completion ${_shell} \
 		>${STAGEDIR}${PREFIX}/${COMPLETIONS_PLIST_FILES:M*${_shell}*}
 .endfor
 



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