summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/yq/yq_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-devtools/yq/yq_git.bb')
-rw-r--r--recipes-devtools/yq/yq_git.bb15
1 files changed, 13 insertions, 2 deletions
diff --git a/recipes-devtools/yq/yq_git.bb b/recipes-devtools/yq/yq_git.bb
index 759cd616..36cfbed8 100644
--- a/recipes-devtools/yq/yq_git.bb
+++ b/recipes-devtools/yq/yq_git.bb
@@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/mikefarah/yq"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e40a0dcd62f8269b9bff37fe9aa7dcc2" 5LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e40a0dcd62f8269b9bff37fe9aa7dcc2"
6 6
7SRCREV_yq = "0f4fb8d35ec1a939d78dd6862f494d19ec589f19" 7SRCREV_yq = "8f3291d3165497b360b8ffee3c887624bb6fa1cf"
8SRCREV_FORMAT = "yq" 8SRCREV_FORMAT = "yq"
9 9
10SRC_URI = "git://github.com/mikefarah/yq.git;name=yq;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ 10SRC_URI = "git://github.com/mikefarah/yq.git;name=yq;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \
@@ -23,7 +23,10 @@ include ${@ "go-mod-hybrid-gomod.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybri
23include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} 23include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""}
24include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} 24include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""}
25 25
26PV = "4.52.5+git" 26# Per-dependency license tracking
27include go-mod-licenses.inc
28
29PV = "4.53.2+git"
27 30
28GO_IMPORT = "import" 31GO_IMPORT = "import"
29 32
@@ -31,6 +34,14 @@ GO_IMPORT = "import"
31GO_MOD_DISCOVERY_BUILD_TARGET = "./..." 34GO_MOD_DISCOVERY_BUILD_TARGET = "./..."
32GO_MOD_DISCOVERY_GIT_REPO = "https://github.com/mikefarah/yq.git" 35GO_MOD_DISCOVERY_GIT_REPO = "https://github.com/mikefarah/yq.git"
33GO_MOD_DISCOVERY_GIT_REF = "${SRCREV_yq}" 36GO_MOD_DISCOVERY_GIT_REF = "${SRCREV_yq}"
37# do_compile only builds the main package; scope the license-scan filter
38# to that single target so go-mod-licenses.inc lists only the modules
39# whose go.sum entries are actually unpacked into pkg/mod/ at build time.
40# Without this the filter inherits GO_MOD_DISCOVERY_BUILD_TARGET (./...)
41# and lists test/tool-only deps that never get unpacked, tripping
42# do_populate_lic with ~27 "LIC_FILES_CHKSUM points to an invalid file"
43# QA errors.
44GO_MOD_DISCOVERY_LICENSE_TARGETS = "."
34 45
35inherit go goarch ptest 46inherit go goarch ptest
36inherit go-mod-discovery 47inherit go-mod-discovery