1
hermetic_cc_toolchain/tools/mod-tidy

13 lines
343 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
# Copyright 2023 Uber Technologies, Inc.
# Licensed under the Apache License, Version 2.0
set -xeu
2021-07-21 14:59:33 +03:00
cd "$(git rev-parse --show-toplevel)"
echo "--- go mod tidy"
wip nix $ ./ci/test bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) + cache_prefix=/tmp/bazel-zig-cc + echo '--- build a single target with very hermetic sandbox' --- build a single target with very hermetic sandbox + bazel build --experimental_use_hermetic_linux_sandbox --sandbox_writable_path=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc //test/c:which_libc_linux_amd64_gnu.2.19 /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) INFO: Analyzed target //test/c:which_libc_linux_amd64_gnu.2.19 (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //test/c:which_libc_linux_amd64_gnu.2.19 up-to-date: bazel-bin/test/c/which_libc_/libc_aware/platform:linux_amd64_gnu.2.19 INFO: Elapsed time: 1.147s, Critical Path: 0.02s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action + echo '--- bazel test ...' --- bazel test ... + bazel test ... /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) ERROR: /home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/local_jdk/BUILD.bazel:2:10: in fail_rule rule @local_jdk//:jdk: Traceback (most recent call last): File "/home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/bazel_tools/tools/jdk/fail_rule.bzl", line 19, column 13, in _fail_rule_impl fail("%s %s" % (ctx.attr.header, ctx.attr.message)) Error in fail: Auto-Configuration Error: Cannot find Java binary bin/java in /home/motiejus/.cache/bazel/_bazel_motiejus/install/1349a6142c7ce93610b5832496a88870/embedded_tools/tools/jdk/nosystemjdk; either correct your JAVA_HOME, PATH or specify Java from remote repository (e.g. --java_runtime_version=remotejdk_11 ERROR: /home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/local_jdk/BUILD.bazel:2:10: Analysis of target '@local_jdk//:jdk' failed ERROR: Analysis of target '//.direnv/flake-inputs/hfjyanh5shjsx6m3h1k8gw61s3azkk68-source/test/cgo:cgo_test_linux_amd64_gnu.2.19' failed; build aborted: INFO: Elapsed time: 1.853s INFO: 0 processes. FAILED: Build did NOT complete successfully (70 packages loaded, 11766 targets configured) Fetching repository @nixpkgs_go; Building Nix derivation ERROR: Couldn't start the build. Unable to run tests motiejus@mtwork:/code/bazel-zig-cc$
2023-03-22 13:25:20 +02:00
bazel run @go_sdk//:bin/go -- mod tidy "$@"
wip nix $ ./ci/test bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) + cache_prefix=/tmp/bazel-zig-cc + echo '--- build a single target with very hermetic sandbox' --- build a single target with very hermetic sandbox + bazel build --experimental_use_hermetic_linux_sandbox --sandbox_writable_path=/tmp/bazel-zig-cc --sandbox_add_mount_pair=/proc //test/c:which_libc_linux_amd64_gnu.2.19 /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) INFO: Analyzed target //test/c:which_libc_linux_amd64_gnu.2.19 (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //test/c:which_libc_linux_amd64_gnu.2.19 up-to-date: bazel-bin/test/c/which_libc_/libc_aware/platform:linux_amd64_gnu.2.19 INFO: Elapsed time: 1.147s, Critical Path: 0.02s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action + echo '--- bazel test ...' --- bazel test ... + bazel test ... /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /nix/store/96ky1zdkpq871h2dlk198fz0zvklr1dr-bash-5.1-p16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) ERROR: /home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/local_jdk/BUILD.bazel:2:10: in fail_rule rule @local_jdk//:jdk: Traceback (most recent call last): File "/home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/bazel_tools/tools/jdk/fail_rule.bzl", line 19, column 13, in _fail_rule_impl fail("%s %s" % (ctx.attr.header, ctx.attr.message)) Error in fail: Auto-Configuration Error: Cannot find Java binary bin/java in /home/motiejus/.cache/bazel/_bazel_motiejus/install/1349a6142c7ce93610b5832496a88870/embedded_tools/tools/jdk/nosystemjdk; either correct your JAVA_HOME, PATH or specify Java from remote repository (e.g. --java_runtime_version=remotejdk_11 ERROR: /home/motiejus/.cache/bazel/_bazel_motiejus/6ec14a6813f13f2c8f1d8cce5637da2e/external/local_jdk/BUILD.bazel:2:10: Analysis of target '@local_jdk//:jdk' failed ERROR: Analysis of target '//.direnv/flake-inputs/hfjyanh5shjsx6m3h1k8gw61s3azkk68-source/test/cgo:cgo_test_linux_amd64_gnu.2.19' failed; build aborted: INFO: Elapsed time: 1.853s INFO: 0 processes. FAILED: Build did NOT complete successfully (70 packages loaded, 11766 targets configured) Fetching repository @nixpkgs_go; Building Nix derivation ERROR: Couldn't start the build. Unable to run tests motiejus@mtwork:/code/bazel-zig-cc$
2023-03-22 13:25:20 +02:00
echo "--- gazelle update-repos"
exec gazelle update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories -prune