aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_rules
Commit message (Collapse)AuthorAge
* In java_rules_skylark depend on the javabase through ↵Gravatar cushon2018-08-08
| | | | | | | | | | //tools/jdk:current_java_runtime instead of referencing @local_jdk directly. See bazelbuild/bazel#5594 PiperOrigin-RevId: 207889762
* Automatic code cleanup.Gravatar gregce2018-07-09
| | | | PiperOrigin-RevId: 203841642
* Format all bzl files with buildifierGravatar vladmos2018-06-01
| | | | | | This CL aslo enables a presubmit check for correct formatting of all bzl files in //third_party/bazel. PiperOrigin-RevId: 198857055
* Make test_rules.bzl --all_incompatible_changes compliant.Gravatar Mathieu Boespflug2018-02-15
| | | | | | | | Fixes #4354. Closes #4355. PiperOrigin-RevId: 185808171
* test_rules.bzl: Make Skylark rule forward compatibleGravatar David Ostrovsky2018-01-04
| | | | | | | This fixes "type 'depset' is not iterable. Use the `to_list()` method to get a list." warning. Change-Id: I10bd791ce15445469afb9e12b2246be583c77a4b
* Remove usages of `+` on dictsGravatar vladmos2018-01-03
| | | | | | | | | The `+` operator on dicts is deprecated and will be removed. This change makes Bazel files compatible with the new behavior. Fixes #4346. PiperOrigin-RevId: 180702882
* Rename set to depsetGravatar vladmos2017-07-27
| | | | | | The `set` constructor is obsolete and will be removed in the future. PiperOrigin-RevId: 163331591
* remove @bazel_tools//tools/build_rules:gensrcjar targetGravatar ajmichael2017-06-27
| | | | | RELNOTES: None PiperOrigin-RevId: 160156249
* protobuf: Use bazel's native java_proto_library rules.Gravatar Jakob Buchgraber2017-06-06
| | | | | | | | | Additional changes: - Introduce a Skylark macro java_library_srcs that provides the source jars of a java_*_library rule. - Remove bazel's own java_proto_library implementation. Change-Id: I18f2259bc75ca0fb32dcd8a6a857c609bd2c7773 PiperOrigin-RevId: 158146210
* Remove unnecessary python skylark rules and update example Gravatar Yu Yi2017-02-28
| | | | | | | | | | | | | | | | | | | | | | | * We already have native python rules, so the skylark ones are no longer unnecessary now * Leaving `load skylark rules` statement in the example may be misleading for newcomers Testing done: * re-compile bazel * use it to build example folder and run py target ``` shell ./compile.sh compile /usr/bin/bazel /home/yiyu/opt/bazel/output/bazel build //examples:all /home/yiyu/opt/bazel/output/bazel run //examples/py:bin ``` -- Change-Id: Icd82afff2b74e77c0bcc80687b04225baf28f6ad Reviewed-on: https://cr.bazel.build/9070 PiperOrigin-RevId: 148646895 MOS_MIGRATED_REVID=148646895
* Rollback of commit 4b73e972d909bcd533f2f9940f95a00b9b73bdde.Gravatar Dmitry Lomov2017-02-17
| | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke tests on CI: http://ci.bazel.io/job/bazel-tests/570/ *** Original change description *** Roll forward execroot change RELNOTES[INC]: Previously, an external repository would be symlinked into the execution root at execroot/local_repo/external/remote_repo. This changes it to be at execroot/remote_repo. This may break genrules/Skylark actions that hardcode execution root paths. If this causes breakages for you, ensure that genrules are using $(location :target) to access files and Skylark rules are using http://bazel.io/docs/skylark/lib/File.html's path, dirname, etc. functions. Cust... -- PiperOrigin-RevId: 147833177 MOS_MIGRATED_REVID=147833177
* Roll forward execroot changeGravatar Kristina Chodorow2017-02-16
| | | | | | | | | | | | | | | | | RELNOTES[INC]: Previously, an external repository would be symlinked into the execution root at execroot/local_repo/external/remote_repo. This changes it to be at execroot/remote_repo. This may break genrules/Skylark actions that hardcode execution root paths. If this causes breakages for you, ensure that genrules are using $(location :target) to access files and Skylark rules are using http://bazel.io/docs/skylark/lib/File.html's path, dirname, etc. functions. Custom crosstools that hardcode external/<repo> paths will have to be updated. Issue #1262. -- PiperOrigin-RevId: 147726370 MOS_MIGRATED_REVID=147726370
* Use //third_party/protobuf:protobuf_java instead of ↵Gravatar Carmi Grushko2017-02-09
| | | | | | | | | | | | //third_party/protobuf:protobuf to refer to the Java proto runtime. (second attempt) This is the name in the upstream protobuf repo. -- PiperOrigin-RevId: 147057949 MOS_MIGRATED_REVID=147057949
* Global cleanup change.Gravatar Kristina Chodorow2016-12-08
| | | | | | -- PiperOrigin-RevId: 141438562 MOS_MIGRATED_REVID=141438562
* Add support for rules_test on rules in a different repository or in theGravatar John Cater2016-12-01
| | | | | | | | | root package. -- Change-Id: Ibbc4119ec65c27ad1f85a74450815195d18f5128 Reviewed-on: https://cr.bazel.build/7571 MOS_MIGRATED_REVID=140625048
* Only add the runfiles of artifacts that are actual inputs of the spawn action.Gravatar Florian Weikert2016-10-11
| | | | | | | The previous solution added too many unneeded runfiles, which caused problems with our workers. -- MOS_MIGRATED_REVID=135782773
* Add bin_dir and genfiles_dir to ctxGravatar Kristina Chodorow2016-10-11
| | | | | -- MOS_MIGRATED_REVID=135689610
* Remove HOST_CFG and DATA_CFG references that cause warningsGravatar Kristina Chodorow2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135353307
* Silence the warning about Javac not supporting workers during bootstrap by ↵Gravatar Philipp Wollermann2016-09-30
| | | | | | | renaming the action mnemonic in the Java Skylark rules to JavacBootstrap. -- MOS_MIGRATED_REVID=134776087
* Rollback of commit 4381a1d6e8f711957f430aac0c301acec6dfa0eb.Gravatar Damien Martin-Guillerez2016-09-14
| | | | | | | | | | | | | *** Reason for rollback *** Breaks all projects using Bazel, see https://ci.bazel.io *** Original change description *** Deprecated and removed HOST_CFG and DATA_CFG global variables. -- MOS_MIGRATED_REVID=133005398
* Global cleanup change.Gravatar Vladimir Moskva2016-09-13
| | | | | -- MOS_MIGRATED_REVID=132976702
* Global cleanup change.Gravatar Vladimir Moskva2016-09-12
| | | | | -- MOS_MIGRATED_REVID=132675557
* Global cleanup change.Gravatar Laurent Le Brun2016-07-07
| | | | | -- MOS_MIGRATED_REVID=126687108
* Remove rust, jsonnet, scala and closure from the Bazel repositoryGravatar Damien Martin-Guillerez2016-05-09
| | | | | | | | Those rules were moved to, respectively, https://github.com/bazelbuild/rules_rust, https://github.com/bazelbuild/rules_jsonnet, https://github.com/bazelbuild/rules_scala, and https://github.com/bazelbuild/rules_closure. -- MOS_MIGRATED_REVID=121834063
* Cut dependency on BoringSSL.Gravatar Lukacs Berki2016-05-09
| | | | | | | gRPC is only used for intra-machine communications, for which not using crypto is perfectly fine. -- MOS_MIGRATED_REVID=121825070
* Make the genproto rules of Bazel usable from other repositories.Gravatar Lukacs Berki2016-04-13
| | | | | | | | | This is mainly so that Dash can be fixed. It's not the optimal solution because then Dash will pull in the whole Bazel repository for a tiny little part of it, though. The optimal solution would be to make Bazel use WORKSPACE dependencies and then factor it out to a separate repository, but this will be good enough to unbreak Dash for the time being. Progress toward fixing https://github.com/bazelbuild/dash/issues/12 . -- MOS_MIGRATED_REVID=119633183
* Fix Bazel continuous build.Gravatar Lukacs Berki2016-04-11
| | | | | | | I carefully kept the test_rules.bzl file but managed to omit the corresponding BUILD file from the embedded tools zip. -- MOS_MIGRATED_REVID=119523076
* Support gRPC in the Bazel-internal protobuf rules.Gravatar Lukacs Berki2016-04-11
| | | | | -- MOS_MIGRATED_REVID=119518388
* Remove te protocol compiler rules from @bazel_tools.Gravatar Lukacs Berki2016-04-11
| | | | | | | | | | | | The immmediate reason for this change is that we also need to add gRPC support to the proto rules, and we don't want to also support gRPC in a half-baked way. This makes the Bazel binary much smaller and avoid giving false signals that we (for now) support protobuf compilation. The protobuf rules are only for compiling Bazel itself. RELNOTES[INC]: Bazel does not embed protocol buffer-related rules anymore. -- MOS_MIGRATED_REVID=119516246
* Rollback of commit 3248a5ea6ecb9f5f2080876a70de016825f54707.Gravatar Lukacs Berki2016-04-07
| | | | | | | | | | | | | *** Reason for rollback *** Breaks //src/test/shell/bazel:bazel_example_test because that relies on the protobuf rules depending on @bazel_tools . The correct solution is probably to eliminate the protobuf dependencies from @bazel_tools altogether, but let's make the continuous build green and then think. *** Original change description *** Update our rudimentary proto rules to be able to handle gRPC. -- MOS_MIGRATED_REVID=119271980
* Update our rudimentary proto rules to be able to handle gRPC.Gravatar Lukacs Berki2016-04-07
| | | | | -- MOS_MIGRATED_REVID=119265313
* Enable overriding attributes for Rust binaries.Gravatar David Chen2016-04-07
| | | | | | | RELNOTES: Enable overriding attributes for Rust binaries. -- MOS_MIGRATED_REVID=119244456
* Remove deprecated Skylark rulesGravatar Kristina Chodorow2016-03-24
| | | | | -- MOS_MIGRATED_REVID=117968196
* Marking Closure Tools for Bazel as deprecated.Gravatar Googler2016-03-23
| | | | | -- MOS_MIGRATED_REVID=117801004
* Fix go_prefix to resolve to the right repositoryGravatar Kristina Chodorow2016-03-22
| | | | | | | | | This should reference the //:go_prefix rule in the repository the BUILD file using go_* is in, not the repository where def.bzl lives (probably @bazel_tools). -- MOS_MIGRATED_REVID=117733799
* Deprecate built-in Skylark rulesGravatar Kristina Chodorow2016-03-21
| | | | | | | | RELNOTES: Skylark rules that are available from their own repository will now issue a warning when accessed through @bazel_tools. -- MOS_MIGRATED_REVID=117730793
* Add Python protobuf to Bazel third_party and move all protobuf targets intoGravatar David Chen2016-03-17
| | | | | | | //third_party/protobuf. -- MOS_MIGRATED_REVID=117336377
* Upgrade Apache Commons Collections to v3.2.2Gravatar Googler2016-03-04
| | | | | | | | | | | | | | Version 3.2.1 has a CVSS 10.0 vulnerability. That's the worst kind of vulnerability that exists. By merely existing on the classpath, this library causes the Java serialization parser for the entire JVM process to go from being a state machine to a turing machine. A turing machine with an exec() function! https://commons.apache.org/proper/commons-collections/security-reports.html http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/ -- MOS_MIGRATED_REVID=116309858
* Update rust rule to reference deps in @bazel_toolsGravatar Kristina Chodorow2016-03-04
| | | | | | | Fixes #1004. -- MOS_MIGRATED_REVID=116299622
* Fix references to @bazel_tools// repository in Go rules.Gravatar David Chen2016-02-28
| | | | | | | Issue #976 -- MOS_MIGRATED_REVID=115720030
* Add design doc for Go rules as markdown.Gravatar Han-Wen Nienhuys2016-02-24
| | | | | | | -- Change-Id: Id14500fa6febb9c7a58a8f093146d4d9771b44aa Reviewed-on: https://bazel-review.googlesource.com/#/c/3007 MOS_MIGRATED_REVID=115438488
* Restore allow_files and single_file attributes.Gravatar Julio Merino2016-02-23
| | | | | | | | | | | | | | | //src/test/shell/bazel:bazel_example_test broke because of commit a6e448253c289f3d5a353f038a5ea47227515a66, which removed the allow_files and single_file properties of a bunch of attributes in the belief that they were stale. However, //third_party:protoc is in fact a filegroup and thus requires single_file. I still think some of them are unnecessary... but because I do not yet know all possible cases in which these are involved, and to prevent further breakage, let's restore them all just in case. I may reevaluate this at a later stage to clean them up. -- MOS_MIGRATED_REVID=115297686
* Allow preprocessing proto files before compiling them in gensrcjar.sh.Gravatar Julio Merino2016-02-23
| | | | | -- MOS_MIGRATED_REVID=115250659
* Split out Java proto compilation logic to a helper script (take 2).Gravatar Julio Merino2016-02-22
| | | | | | | | | | | | | | | | | | | This is just for clarity and should be a no-op. Maintaining long shell command lines embedded in genrules is not pretty. This change is a combination of commit 8ec3866d9e5d28f6c09546269ec82731c45c28ad and commit ffc891c4efbf498fdb8eaf4d2c922e7e7a58f99d with additional fixes. In particular I have removed unnecessary properties from all rule attributes, have made the rule respect any runfiles, and have reinstanted the explicit dependency on the JDK. The latter is what fixes the breakage we observed in #938, though it seems clear that we are missing a dependency somewhere. I have verified that this now works by running this change on a clean Ubuntu 15.10 VM. -- MOS_MIGRATED_REVID=115081830
* Rollback of commit 8ec3866d9e5d28f6c09546269ec82731c45c28ad.Gravatar Damien Martin-Guillerez2016-02-19
| | | | | | | | | | | | | | | | | | *** Reason for rollback *** Break Jenkins build. See https://github.com/bazelbuild/bazel/issues/938 *** Original change description *** Split out Java proto compilation logic to a helper script. This is just for clarity and should be a no-op. Maintaining long shell command lines embedded in genrules is not pretty. -- MOS_MIGRATED_REVID=115048759
* Rename proto_java_library to java_proto_library.Gravatar Julio Merino2016-02-19
| | | | | | | | RELNOTES[INC]: Renamed proto_java_library to java_proto_library. The former is now deprecated and will print out a warning when used. -- MOS_MIGRATED_REVID=115012027
* Use ctx.executable to get references to the binaries.Gravatar Julio Merino2016-02-19
| | | | | | | | | | This fixes the build of Bazel with itself. Using ctx.file instead of executable may yield a reference of the form external/blahblah/ which does not exist in the file system. Using ctx.executable does point to the right binary. -- MOS_MIGRATED_REVID=114990955
* Fix issues with commit 650533fffccb97910338f335939de76922c9f679Gravatar Michael Zhou2016-02-19
| | | | | | | | | | Change --closure_entry_point to the new --entry_point that is required to be used with --dependency_mode. Remove the default --language_in=ECMASCRIPT5_STRICT. Closure Compiler now defaults to ECMASCRIPT6. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/926 MOS_MIGRATED_REVID=114980140
* Split out Java proto compilation logic to a helper script.Gravatar Julio Merino2016-02-19
| | | | | | | | This is just for clarity and should be a no-op. Maintaining long shell command lines embedded in genrules is not pretty. -- MOS_MIGRATED_REVID=114967410
* Use a specific release of the Closure Compiler instead of referencing -latestGravatar Kamil Jiwa2016-02-18
| | | | | -- MOS_MIGRATED_REVID=114906474