You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmake_script.gitclone(repository_name, tag, be, github_organization)
@@ -2132,11 +2133,11 @@ def backend_build(
2132
2133
defbackend_clone(
2133
2134
be,
2134
2135
clone_script,
2135
-
tag,
2136
+
tag_org,
2136
2137
build_dir,
2137
2138
install_dir,
2138
-
github_organization,
2139
2139
):
2140
+
tag, github_organization=tag_org
2140
2141
clone_script.commentln(8)
2141
2142
clone_script.comment(f"'{be}' backend")
2142
2143
clone_script.comment("Delete this section to remove backend from build")
@@ -2676,7 +2677,7 @@ def enable_all():
2676
2677
"--backend",
2677
2678
action="append",
2678
2679
required=False,
2679
-
help='Include specified backend in build as <backend-name>[:<repo-tag>]. If <repo-tag> starts with "pull/" then it refers to a pull-request reference, otherwise <repo-tag> indicates the git tag/branch to use for the build. If the version is non-development then the default <repo-tag> is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default <repo-tag> is "main" (e.g. version YY.MMdev -> branch main).',
2680
+
help='Include specified backend in build as <backend-name>[:<repo-tag>][:<org>]. If <repo-tag> starts with "pull/" then it refers to a pull-request reference, otherwise <repo-tag> indicates the git tag/branch to use for the build. If the version is non-development then the default <repo-tag> is the release branch matching the container version (e.g. version YY.MM -> branch rYY.MM); otherwise the default <repo-tag> is "main" (e.g. version YY.MMdev -> branch main). <org> allows using a forked repository instead of the default --github-organization value.',
2680
2681
)
2681
2682
parser.add_argument(
2682
2683
"--repo-tag",
@@ -2899,11 +2900,14 @@ def enable_all():
2899
2900
# Initialize map of backends to build and repo-tag for each.
2900
2901
backends= {}
2901
2902
forbeinFLAGS.backend:
2902
-
parts=be.split(":")
2903
+
pattern=r"(https?:\/\/[^\s:]+)|:"
2904
+
parts=list(filter(None,re.split(pattern, be)))
2903
2905
iflen(parts) ==1:
2904
2906
parts.append(default_repo_tag)
2905
-
log('backend "{}" at tag/branch "{}"'.format(parts[0], parts[1]))
2906
-
backends[parts[0]] =parts[1]
2907
+
iflen(parts) ==2:
2908
+
parts.append(FLAGS.github_organization)
2909
+
log('backend "{}" at tag/branch "{}" from org "{}"'.format(parts[0], parts[1], parts[2]))
0 commit comments