1
Fork 0
Commit Graph

17 Commits

Author SHA1 Message Date
Motiejus Jakštys 2ea75419e0 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-23 14:21:54 +02:00
Motiejus Jakštys 5cccfb1ce1 move bin/ to tools/
The directories are not that different now. Also, clean up .bazelrc
2023-03-10 10:37:43 +02:00
Zhongpeng Lin fef28b9706 Enable Lint on CI (#2) 2023-03-06 11:46:02 +02:00
Motiejus Jakštys dfdb1f2680
Re-license portions of the code to Apache 2.0
Your old version of the software released under the old license can
still be used under the terms of the old license.

I have received the following statement from the past contributors
Luis Holanda, Jeremy Volkman and Fabian Hahn:

  I hereby confirm that I am the copyright holder or authorized by the
  copyright holder of this contribution. As such I hereby confirm that
  all contributions made to bazel-zig-cc by me or on behalf of me,
  hereby is licensed under the Apache 2.0 License
  [http://www.apache.org/licenses/LICENSE-2.0]. I am aware that my
  previous contributions will still be available under the MIT license
  as well. I confirm that I am aware of the bazel-zig-cc teams intention
  to release bazel-zig-cc under the Apache 2.0 License from release
  [1.0] and onwards, and that the bazel-zig-cc no longer will accept
  contributions made under the MIT and that any future submissions from
  myself will be considered to be licensed under Apache 2.0 unless I
  expressly state otherwise.

Copyright and re-licensing for Google and Uber employees has been
resolved internally.

Since not all contributors took action to re-license the code yet,
portions of bazel-zig-cc remain licensed as MIT.

I have started this project during my personal time with my personal
resources. I am now handing over all copyrights to this code to Uber
Technologies, Inc.
2023-03-06 11:05:13 +02:00
Motiejus Jakštys bfa994e2ee upgrade bazelisk and buildifier 2022-07-12 14:29:54 +03:00
Motiejus Jakštys 450a8486e2 [.envrc] fix linux-aarch64 buildifier hash 2022-05-06 09:59:52 +03:00
laurynasl 7a81e2a129 Restructure tests to all run in bazel
- add rules to run tests for a specific platform
- use downloaded buildifier
- move lint to a script
- rename ci tasks
- stop running under qemu-aarch64-static as it doesn't do anything
2022-04-14 10:47:02 +00:00
Ken Micklas dc138b490a Fix darwin arm64 case in .envrc for loading bazel 2022-02-11 06:28:55 +02:00
Motiejus Jakštys 8430789f21 .envrc: remove bashism 2022-02-04 11:16:52 +02:00
Motiejus Jakštys e6be5e73b6 update .envrc 2021-09-13 09:12:09 +03:00
Motiejus Jakštys a26c339188 shell strict mode in .envrc 2021-09-07 10:54:33 +03:00
Motiejus Jakštys f053dcc774 update .envrc 2021-09-07 10:49:39 +03:00
Motiejus Jakštys bf183e1e04 .envrc style 2021-09-06 17:11:11 +03:00
Motiejus Jakštys 11e8022814 download a verified version of bazelisk 2021-09-06 17:02:17 +03:00
Motiejus Jakštys 9152ce8216 fix .envrc 2021-07-21 16:28:33 +03:00
Motiejus Jakštys 1c86c6e5c7 check arch when downloading bazel 2021-07-21 16:23:57 +03:00
Motiejus Jakštys be168480a7 downgrade bazel to 3.7.0
that's our target for now.
2021-06-28 12:52:20 +03:00