diff options
Diffstat (limited to 'recipes-containers/nerdctl/nerdctl_git.bb')
| -rw-r--r-- | recipes-containers/nerdctl/nerdctl_git.bb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb index 3cb8160b..8dc209b2 100644 --- a/recipes-containers/nerdctl/nerdctl_git.bb +++ b/recipes-containers/nerdctl/nerdctl_git.bb | |||
| @@ -14,8 +14,17 @@ SRCREV_nerdcli = "5604f9077214d1e7ef84e1699d794387d281195a" | |||
| 14 | 14 | ||
| 15 | SRC_URI = "git://github.com/containerd/nerdctl.git;name=nerdcli;branch=main;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" | 15 | SRC_URI = "git://github.com/containerd/nerdctl.git;name=nerdcli;branch=main;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" |
| 16 | 16 | ||
| 17 | include go-mod-git.inc | 17 | # GO_MOD_FETCH_MODE: "vcs" (all git://) or "hybrid" (gomod:// + git://) |
| 18 | include go-mod-cache.inc | 18 | GO_MOD_FETCH_MODE ?= "hybrid" |
| 19 | |||
| 20 | # VCS mode: all modules via git:// | ||
| 21 | include ${@ "go-mod-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 22 | include ${@ "go-mod-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 23 | |||
| 24 | # Hybrid mode: gomod:// for most, git:// for selected | ||
| 25 | include ${@ "go-mod-hybrid-gomod.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 26 | include ${@ "go-mod-hybrid-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 27 | include ${@ "go-mod-hybrid-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "hybrid" else ""} | ||
| 19 | 28 | ||
| 20 | # patches | 29 | # patches |
| 21 | SRC_URI += " \ | 30 | SRC_URI += " \ |
