Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd1a78d

Browse files
Check return code of zstd make (bazel-contrib#695)
Co-authored-by: Thulio Ferraz Assis <[email protected]>
1 parent 6948791 commit bd1a78d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/repositories.bzl

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ def _python_repository_impl(rctx):
5959
sha256 = rctx.attr.zstd_sha256,
6060
)
6161
working_directory = "zstd-{version}".format(version = rctx.attr.zstd_version)
62-
rctx.execute(
62+
make_result = rctx.execute(
6363
["make", "--jobs=4"],
6464
timeout = 600,
6565
quiet = True,
6666
working_directory = working_directory,
6767
)
68+
if make_result.return_code:
69+
fail(make_result.stderr)
6870
zstd = "{working_directory}/zstd".format(working_directory = working_directory)
6971
unzstd = "./unzstd"
7072
rctx.symlink(zstd, unzstd)

0 commit comments

Comments
 (0)