aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_rules
Commit message (Collapse)AuthorAge
* 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
* Update Closure Tools dependencies and add arguments to closure_js_binary()Gravatar Michael Zhou2016-02-17
| | | | | | | | | | | | | | | | | Update Closure Compiler to v20160208 Update Closure Library to v20160208 Update Closure Stylesheets to 1.1.0 Add "--language_in" and "--language_out" to closure_js_binary.bzl With these flags users can transpile their closure_js_binary() from ES6 to ES3. Change "--manage_closure_dependencies" to "--dependency_mode=LOOSE" because the former has been deprecated in Closure Compiler v20160208. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/910 MOS_MIGRATED_REVID=114898222
* Turn //tools/build_rules into a package.Gravatar Julio Merino2016-02-17
| | | | | | | | | This is in preparation for another change that will add a new helper script to the tools/build_rules directory, and such script requires a BUILD rule of its own. -- MOS_MIGRATED_REVID=114898083
* Don't import API functions you don't useGravatar Francois-Rene Rideau2016-02-17
| | | | | | | This prevents a refactoring in said API -- MOS_MIGRATED_REVID=114889925
* Revert "Merge pull request #910 from Dominator008/closure"Gravatar Damien Martin-Guillerez2016-02-17
| | | | | | | This reverts commit 3f7057789df337db4da3006b14e14c9c245c3a00, reversing changes made to cbbbf2e461396d3817a00c4bd4d26b9b43b68ce3. Accidental merge, merged pull request have to go through googlesource first
* Merge pull request #910 from Dominator008/closureGravatar Kamil Jiwa2016-02-17
|\ | | | | Update Closure Tools dependencies and add language arguments to closure_js_binary()
| * Add "--language_in" and "--language_out" to closure_js_binary.bzlGravatar Michael Zhou2016-02-17
| | | | | | | | | | | | | | | | With these flags users can transpile their closure_js_binary() from ES6 to ES3. Change "--manage_closure_dependencies" to "--dependency_mode=LOOSE" because the former has been deprecated in Closure Compiler v20160208.
* | Reformat genproto.bzl to comply with the style guide.Gravatar Julio Merino2016-02-17
| | | | | | | | | | | | | | | | This is a preparatory change for a follow-up commit so that the diff of that commit is easy to review. -- MOS_MIGRATED_REVID=114857369
* | Stop bundling ijar's sources in bazel_toolsGravatar Damien Martin-Guillerez2016-02-17
| | | | | | | | | | | | | | | | | | | | Instead bundle ijar's zipper binary so the skylark rules that depends on it can use it from @bazel_tools. A commit introducing windows config settings broke our appengine tutorial. -- MOS_MIGRATED_REVID=114857080
| * Update dependencies in closure_repositories.bzlGravatar Michael Zhou2016-02-16
|/ | | | | | Update Closure Compiler to v20160208 Update Closure Library to v20160208 Update Closure Stylesheets to 1.1.0
* Updates the appengine_war() rule to include the transitive dependencies of ↵Gravatar Alex Humesky2016-02-15
| | | | | | | | | the input rules in the output war. Fixes #895 -- MOS_MIGRATED_REVID=114615465
* Use build_file_content attribute of new_* repositories instead of build_file ↵Gravatar Damien Martin-Guillerez2016-02-12
| | | | | | | | | | | | in Skylark rules Loading those skylark rules where failing now they are in a remote repository because the build file could not be found. Fixes #883. -- MOS_MIGRATED_REVID=114528630
* Update documentation of skylark rules: correct load statementsGravatar Damien Martin-Guillerez2016-02-10
| | | | | | | Fixes #864. -- MOS_MIGRATED_REVID=114208872
* [rust] Update Rust rules to Rust 1.6Gravatar David Chen2016-02-04
| | | | | | | RELNOTES: [rust] Update to Rust 1.6 -- MOS_MIGRATED_REVID=113822518
* Use labels in load statementsGravatar Damien Martin-Guillerez2016-02-02
| | | | | | | | | | | | This will fix some issue with loading skylark rules from @bazel_tools. Tested with ./compile.sh all and also a project that use pkg_tar from @bazel_tools (which is broken at HEAD). -- Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0 Reviewed-on: https://bazel-review.googlesource.com/2800 MOS_MIGRATED_REVID=113508661
* Update appengine repository rule namesGravatar Kristina Chodorow2016-01-29
| | | | | | | Use _ instead of -. -- MOS_MIGRATED_REVID=113307540
* Convert skylark rules and tests to use _ in repo namesGravatar Kristina Chodorow2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113081497
* Fix appengine rule to use all @bazel_tools targetsGravatar Kristina Chodorow2016-01-21
| | | | | | | | I didn't notice that I had neglected to add these lines to the changelist yesterday because there were so many style changes around them. -- MOS_MIGRATED_REVID=112701694
* Update appengine.bzl rules to use remote reposGravatar Kristina Chodorow2016-01-21
| | | | | | | Instead of depending on //tools and //third_party in the base workspace. -- MOS_MIGRATED_REVID=112599883
* Allow empty go_prefix.Gravatar Han-Wen Nienhuys2016-01-20
| | | | | | | | | Fixes #676. -- Change-Id: I7474d3e3071c99452b6e1835d6f70671f34b1fd9 Reviewed-on: https://bazel-review.googlesource.com/#/c/2693 MOS_MIGRATED_REVID=112564791
* Basic build tag support for go rulesGravatar David Santiago2016-01-11
| | | | | | | | | | Initial implementation for the filter_tags executable is present, along with some tests for the implemented functionality. -- Change-Id: Id82251a3e730596db57ce5fd158b9247b0bee55d Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2132 MOS_MIGRATED_REVID=111841913
* Fix bazel_go_example_test. Changes:Gravatar Han-Wen Nienhuys2015-12-22
| | | | | | | | | | | | | | | | | * The go_prefix should be declared in the toplevel BUILD file as //:go_prefix, rather than //external:go_prefix. * Run set_up from the test methods. * Update references to Darwin. Tested: bazel test src/test/shell/bazel/bazel_go_example_test -- Change-Id: I89b2f5920100d27abdbc093437c7c051a24fad1e Reviewed-on: https://bazel-review.googlesource.com/#/c/2561 MOS_MIGRATED_REVID=110762730
* Make the Go rules depend on the Go toolchain targets in the main repository.Gravatar Lukacs Berki2015-12-15
| | | | | | | This will be broken when we remove tools/ from the base workspace, but for now, it allows one to use Go rules in external repositories. -- MOS_MIGRATED_REVID=110150654
* Remove deleted WORKSPACE.go-toolchain from srcs.Gravatar David Chen2015-12-07
| | | | | | | TESTED: bazel test //src/test/... -- MOS_MIGRATED_REVID=109481372
* Use load() to add external repositories for Skylark rules.Gravatar David Chen2015-12-04
| | | | | -- MOS_MIGRATED_REVID=109405753
* Drop intermediate zip archive from py_binary outputGravatar Benjamin Staffin2015-12-03
| | | | | | | | | | | | | | | If you feed a py_binary into a pkg_tar to a pkg_deb, you won't want to have the deploy_zip intermediate artifact included in the resulting package. I'm think this change keeps it as an expected byproduct of the build, but drops it from the list of files produced by the y_binary rule. Also trimmed a superfluous chmod from the final concat action. -- Change-Id: Ib2bc05c2e43c7329bd9d92ea034f0c613f7fcbc6 Reviewed-on: https://bazel-review.googlesource.com/#/c/2280 MOS_MIGRATED_REVID=109290774
* Fix for I82f1d300470ff69e9d70c3008cf569d9ec94764dGravatar Brian Silverman2015-12-02
| | | | | | | -- Change-Id: Ibf72c15940024df15270731cc919264adbcd0d75 Reviewed-on: https://bazel-review.googlesource.com/#/c/2430/ MOS_MIGRATED_REVID=109236369
* [rust] Use load() to add external repositories.Gravatar David Chen2015-12-02
| | | | | -- MOS_MIGRATED_REVID=109195094
* Update Rust new_http_archive rules to use 1.4 and strip_prefixGravatar Kamal Marhubi2015-12-02
| | | | | | | | | | | | | | | | | | | | | | The lack of strip_prefix lead to the files not being found with the supplied rust.BUILD file. Tested: - created simple repository with rust_library and rust_binary targets as outlined in //tools/build_rules/rust/README.md - (workaround) copied //tools/build_rules/rust/rust.BUILD into workspace as suggested by @kchodorow: https://github.com/bazelbuild/bazel/issues/488#issuecomment-143754576 - verified that library and binary build, and that binary runs correctly RELNOTES: Update Rust to 1.4 -- Change-Id: Ic2c275395ca245179e35e723faf0b9d13120fa1f Reviewed-on: https://bazel-review.googlesource.com/#/c/2382/ MOS_MIGRATED_REVID=109187409