diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-09 01:53:47 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-08 20:57:44 -0500 |
| commit | 175bf1f03c02a7ab968b906e45da7ede49d3ce59 (patch) | |
| tree | 204bbb0b2042b5eac9dc8e65766f6b35089fc666 /recipes-containers/docker-compose/docker-compose_git.bb | |
| parent | 2bee001d6ddcafba7d384ac7ee241b16a1449681 (diff) | |
| download | meta-virtualization-175bf1f03c02a7ab968b906e45da7ede49d3ce59.tar.gz | |
docker-compose: convert to hybrid gmod-vcs
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker-compose/docker-compose_git.bb')
| -rw-r--r-- | recipes-containers/docker-compose/docker-compose_git.bb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/recipes-containers/docker-compose/docker-compose_git.bb b/recipes-containers/docker-compose/docker-compose_git.bb index 05f31a21..ccb36a16 100644 --- a/recipes-containers/docker-compose/docker-compose_git.bb +++ b/recipes-containers/docker-compose/docker-compose_git.bb | |||
| @@ -11,8 +11,17 @@ SRCREV_FORMAT = "compose" | |||
| 11 | 11 | ||
| 12 | SRC_URI = "git://github.com/docker/compose;branch=main;name=compose;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" | 12 | SRC_URI = "git://github.com/docker/compose;branch=main;name=compose;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" |
| 13 | 13 | ||
| 14 | include go-mod-git.inc | 14 | # GO_MOD_FETCH_MODE: "vcs" (all git://) or "hybrid" (gomod:// + git://) |
| 15 | include go-mod-cache.inc | 15 | GO_MOD_FETCH_MODE ?= "hybrid" |
| 16 | |||
| 17 | # VCS mode: all modules via git:// | ||
| 18 | include ${@ "go-mod-git.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 19 | include ${@ "go-mod-cache.inc" if d.getVar("GO_MOD_FETCH_MODE") == "vcs" else ""} | ||
| 20 | |||
| 21 | # Hybrid mode: gomod:// for most, git:// for selected | ||
| 22 | include ${@ "go-mod-hybrid-gomod.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 ""} | ||
| 16 | 25 | ||
| 17 | LICENSE = "Apache-2.0" | 26 | LICENSE = "Apache-2.0" |
| 18 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=175792518e4ac015ab6696d16c4f607e" | 27 | LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=175792518e4ac015ab6696d16c4f607e" |
