mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2025-03-19 05:34:52 +00:00
Change-Id: Idf8ec4b70eed991874a0bcdcced132b9f6da3f83 Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1584 Reviewed-by: q3k <q3k@hackerspace.pl>
60 lines
2.2 KiB
Diff
60 lines
2.2 KiB
Diff
diff -ur com_googlesource_gerrit_bazlets.orig/tools/js.bzl com_googlesource_gerrit_bazlets/tools/js.bzl
|
|
--- com_googlesource_gerrit_bazlets.orig/tools/js.bzl 2023-09-01 19:06:56.873026919 +0200
|
|
+++ com_googlesource_gerrit_bazlets/tools/js.bzl 2023-09-01 19:07:11.222983491 +0200
|
|
@@ -26,7 +26,7 @@
|
|
else:
|
|
fail("repository %s not in {%s,%s}" % (repository, GERRIT, NPMJS))
|
|
|
|
- python = ctx.which("python")
|
|
+ python = ctx.which("python3")
|
|
script = ctx.path(ctx.attr._download_script)
|
|
|
|
args = [python, script, "-o", dest, "-u", url, "-v", sha1]
|
|
@@ -49,7 +49,7 @@
|
|
|
|
# for use in repo rules.
|
|
def _run_npm_binary_str(ctx, tarball, args):
|
|
- python_bin = ctx.which("python")
|
|
+ python_bin = ctx.which("python3")
|
|
return " ".join([
|
|
python_bin,
|
|
ctx.path(ctx.attr._run_npm),
|
|
@@ -63,7 +63,7 @@
|
|
version_name = "%s__version.json" % ctx.name
|
|
|
|
cmd = [
|
|
- ctx.which("python"),
|
|
+ ctx.which("python3"),
|
|
ctx.path(ctx.attr._download_bower),
|
|
"-b",
|
|
"%s" % _run_npm_binary_str(ctx, ctx.attr._bower_archive, []),
|
|
@@ -311,7 +311,7 @@
|
|
zips = [z for d in ctx.attr.deps for z in d[ComponentInfo].transitive_zipfiles.to_list()]
|
|
|
|
hermetic_npm_binary = " ".join([
|
|
- "python",
|
|
+ "python3",
|
|
"$p/" + ctx.file._run_npm.path,
|
|
"$p/" + ctx.file._bundler_archive.path,
|
|
"--inline-scripts",
|
|
@@ -360,7 +360,7 @@
|
|
|
|
if ctx.attr.split:
|
|
hermetic_npm_command = "export PATH && " + " ".join([
|
|
- "python",
|
|
+ "python3",
|
|
ctx.file._run_npm.path,
|
|
ctx.file._crisper_archive.path,
|
|
"--always-write-script",
|
|
diff -ur com_googlesource_gerrit_bazlets.orig/tools/maven_jar.bzl com_googlesource_gerrit_bazlets/tools/maven_jar.bzl
|
|
--- com_googlesource_gerrit_bazlets.orig/tools/maven_jar.bzl 2023-09-01 19:05:59.782193961 +0200
|
|
+++ com_googlesource_gerrit_bazlets/tools/maven_jar.bzl 2023-09-01 19:06:23.679125192 +0200
|
|
@@ -136,7 +136,7 @@
|
|
srcjar_path = ctx.path("/".join(["src", srcjar]))
|
|
srcurl = url + "-sources.jar"
|
|
|
|
- python = ctx.which("python")
|
|
+ python = ctx.which("python3")
|
|
script = ctx.path(ctx.attr._download_script)
|
|
|
|
args = [python, script, "-o", binjar_path, "-u", binurl]
|