diff options
Diffstat (limited to 'recipes-extended/rootlesskit/rootlesskit_git.bb')
| -rw-r--r-- | recipes-extended/rootlesskit/rootlesskit_git.bb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/recipes-extended/rootlesskit/rootlesskit_git.bb b/recipes-extended/rootlesskit/rootlesskit_git.bb index b98c0fd8..5fa940af 100644 --- a/recipes-extended/rootlesskit/rootlesskit_git.bb +++ b/recipes-extended/rootlesskit/rootlesskit_git.bb | |||
| @@ -16,8 +16,18 @@ SRC_URI = "git://github.com/rootless-containers/rootlesskit;name=rootless;branch | |||
| 16 | file://0001-rootlesskit-add-GOFLAGS-to-Makefile.patch \ | 16 | file://0001-rootlesskit-add-GOFLAGS-to-Makefile.patch \ |
| 17 | " | 17 | " |
| 18 | 18 | ||
| 19 | include go-mod-git.inc | 19 | |
| 20 | include go-mod-cache.inc | 20 | # GO_MOD_FETCH_MODE: "vcs" (all git://) or "hybrid" (gomod:// + git://) |
| 21 | GO_MOD_FETCH_MODE ?= "hybrid" | ||
| 22 | |||
| 23 | # VCS mode: all modules via git:// | ||
| 24 | include ${@ "go-mod-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 25 | include ${@ "go-mod-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 26 | |||
| 27 | # Hybrid mode: gomod:// for most, git:// for selected | ||
| 28 | include ${@ "go-mod-hybrid-gomod.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 29 | include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 30 | include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 21 | 31 | ||
| 22 | LICENSE = "Apache-2.0" | 32 | LICENSE = "Apache-2.0" |
| 23 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | 33 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" |
