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)
@@ -2133,11 +2134,11 @@ def backend_build(
2133
2134
defbackend_clone(
2134
2135
be,
2135
2136
clone_script,
2136
-
tag,
2137
+
tag_org,
2137
2138
build_dir,
2138
2139
install_dir,
2139
-
github_organization,
2140
2140
):
2141
+
tag, github_organization=tag_org
2141
2142
clone_script.commentln(8)
2142
2143
clone_script.comment(f"'{be}' backend")
2143
2144
clone_script.comment("Delete this section to remove backend from build")
@@ -2677,7 +2678,7 @@ def enable_all():
2677
2678
"--backend",
2678
2679
action="append",
2679
2680
required=False,
2680
-
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).',
2681
+
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.',
2681
2682
)
2682
2683
parser.add_argument(
2683
2684
"--repo-tag",
@@ -2900,11 +2901,14 @@ def enable_all():
2900
2901
# Initialize map of backends to build and repo-tag for each.
2901
2902
backends= {}
2902
2903
forbeinFLAGS.backend:
2903
-
parts=be.split(":")
2904
+
pattern=r"(https?:\/\/[^\s:]+)|:"
2905
+
parts=list(filter(None,re.split(pattern, be)))
2904
2906
iflen(parts) ==1:
2905
2907
parts.append(default_repo_tag)
2906
-
log('backend "{}" at tag/branch "{}"'.format(parts[0], parts[1]))
2907
-
backends[parts[0]] =parts[1]
2908
+
iflen(parts) ==2:
2909
+
parts.append(FLAGS.github_organization)
2910
+
log('backend "{}" at tag/branch "{}" from org "{}"'.format(parts[0], parts[1], parts[2]))
0 commit comments