From 99d2f6e690d8d1fbf72dd61a3fe57ced0294766f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 7 Jun 2024 10:48:42 +0200 Subject: [PATCH] fix(ci): prefix PATH with correct Go compiler path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we end up with weird errors like: ``` status-go/go.mod:5: unknown directive: toolchain ``` Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.macos | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index bfe80d4367..a088c8ef98 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -67,7 +67,8 @@ pipeline { MAKEFLAGS = "-j4 V=${params.VERBOSE}" /* WARNING: Qt 5.15.8 installed via Brew. */ QTDIR = '/opt/homebrew/opt/qt@5' - PATH = "${env.QTDIR}/bin:${env.PATH}" + /* Enforce Go version installed infra-role-golang. */ + PATH = "${env.QTDIR}/bin:/usr/local/go/bin:${env.PATH}" /* Avoid weird bugs caused by stale cache. */ QML_DISABLE_DISK_CACHE = "true" /* Control output the filename */