diff options
Diffstat (limited to 'recipes-devtools/yq/yq_git.bb')
| -rw-r--r-- | recipes-devtools/yq/yq_git.bb | 15 |
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" | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e40a0dcd62f8269b9bff37fe9aa7dcc2" | 5 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=e40a0dcd62f8269b9bff37fe9aa7dcc2" |
| 6 | 6 | ||
| 7 | SRCREV_yq = "0f4fb8d35ec1a939d78dd6862f494d19ec589f19" | 7 | SRCREV_yq = "8f3291d3165497b360b8ffee3c887624bb6fa1cf" |
| 8 | SRCREV_FORMAT = "yq" | 8 | SRCREV_FORMAT = "yq" |
| 9 | 9 | ||
| 10 | SRC_URI = "git://github.com/mikefarah/yq.git;name=yq;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \ | 10 | SRC_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 | |||
| 23 | include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | 23 | include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} |
| 24 | include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | 24 | include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} |
| 25 | 25 | ||
| 26 | PV = "4.52.5+git" | 26 | # Per-dependency license tracking |
| 27 | include go-mod-licenses.inc | ||
| 28 | |||
| 29 | PV = "4.53.2+git" | ||
| 27 | 30 | ||
| 28 | GO_IMPORT = "import" | 31 | GO_IMPORT = "import" |
| 29 | 32 | ||
| @@ -31,6 +34,14 @@ GO_IMPORT = "import" | |||
| 31 | GO_MOD_DISCOVERY_BUILD_TARGET = "./..." | 34 | GO_MOD_DISCOVERY_BUILD_TARGET = "./..." |
| 32 | GO_MOD_DISCOVERY_GIT_REPO = "https://github.com/mikefarah/yq.git" | 35 | GO_MOD_DISCOVERY_GIT_REPO = "https://github.com/mikefarah/yq.git" |
| 33 | GO_MOD_DISCOVERY_GIT_REF = "${SRCREV_yq}" | 36 | GO_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. | ||
| 44 | GO_MOD_DISCOVERY_LICENSE_TARGETS = "." | ||
| 34 | 45 | ||
| 35 | inherit go goarch ptest | 46 | inherit go goarch ptest |
| 36 | inherit go-mod-discovery | 47 | inherit go-mod-discovery |
