aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Use xcode_config build target for actions which need to resolve an xcode ↵Gravatar Chris Parsons2016-01-13
| | | | | | | version. -- MOS_MIGRATED_REVID=111978539
* [scala] fix declared dependencies.Gravatar Damien Martin-Guillerez2016-01-13
| | | | | | | | | Without those dependencies, scala builds fails with sandboxing enabled -- Change-Id: I64d262ada6ab3df210e72eba53305febecfbdbaa Reviewed-on: https://bazel-review.googlesource.com/#/c/2660/ MOS_MIGRATED_REVID=111952523
* Don't break long words for debian control fieldsGravatar Andrew Jorgensen2016-01-12
| | | | | | | | | | | | | | | | | By default wrapping can split on `-` characters which creates the chance that any dependency with a `-` in it that falls near the wrap threshold will get split along two lines and render the control file invalid. > Text is preferably wrapped on whitespaces and right after the hyphens > in hyphenated words; only then will long words be broken if necessary, > unless TextWrapper.break_long_words is set to false. https://docs.python.org/3.1/library/textwrap.html#textwrap.TextWrapper.break_long_words Fixes #772. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/777 MOS_MIGRATED_REVID=111925490
* 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
* Implement groovy_junit_testGravatar Erik Kuefler2016-01-11
| | | | | | | | | | | | | This is very similar to spock_test, except it refers to the test classes as "Tests" instead of "Specs", and it doesn't include the dependency on Spock. This is the last of the Groovy rules I'm planning to contribute, though there are a couple of improvements left to be made to the existing rules. -- Change-Id: Ie5acea7f65fcc96ec8cff9a3f9079583e7f77cb7 Reviewed-on: https://bazel-review.googlesource.com/#/c/2431/ MOS_MIGRATED_REVID=111694856
* making sass work better in different linux situations, minor cleanup overall.Gravatar Derek Perez2016-01-07
| | | | | | | -- Change-Id: I116d8f3f5dcae97bf78601db60b0fcef0e630228 Reviewed-on: https://bazel-review.googlesource.com/#/c/2630/ MOS_MIGRATED_REVID=111611226
* [docker_build] Fix required flag for create_image.pyGravatar Damien Martin-Guillerez2016-01-07
| | | | | | | | create_image.py was marking twice 'metadata' as a required flag and never 'layer'. -- MOS_MIGRATED_REVID=111600351
* Add -fno-canonical-system-headers to CROSSTOOL files so that gcc doesn't ↵Gravatar Lukacs Berki2016-01-07
| | | | | | | | | resolve symlinks in .d files, which would confuse Blaze. Fixes #714. -- MOS_MIGRATED_REVID=111583801
* Fixes formatting in scala rules doc.Gravatar Alex Humesky2016-01-07
| | | | | -- MOS_MIGRATED_REVID=111419811
* 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
* Support LABEL in docker_build ruleGravatar Yuki Yugui Sonoda2015-12-21
| | | | | | | | | | | | Allows users to associate custom metadata with docker images. Discussion: https://groups.google.com/d/msg/bazel-dev/FTQVg2U3CvQ/X-8RJ01_AgAJ -- Change-Id: Ia9f6ceb1dd99aa91cf0c41f3d7afc447ab5792e5 Reviewed-on: https://bazel-review.googlesource.com/#/c/2350/ MOS_MIGRATED_REVID=110489115
* Tweak error detection in incremental_install.py .Gravatar Lukacs Berki2015-12-16
| | | | | | | The old one failed to work with Android N. -- MOS_MIGRATED_REVID=110335879
* Source iOS memleak plugin stub from bazel_tools.Gravatar Peter Schmitt2015-12-16
| | | | | -- MOS_MIGRATED_REVID=110280939
* Make Debian package maintainer scripts executable.Gravatar Piotr Sikora2015-12-15
| | | | | | | | This is required per official documentation: https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html -- MOS_MIGRATED_REVID=110235045
* 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
* Improve scalac: use ijar and download scalacGravatar oscar2015-12-08
| | | | | | | -- Change-Id: I22fb6cc5a37f5c6c216dc3abbc915d1be3fd5e6b Reviewed-on: https://bazel-review.googlesource.com/#/c/2410/ MOS_MIGRATED_REVID=109717610
* Make "//..." do not find packages in the base workspace.Gravatar Lukacs Berki2015-12-08
| | | | | | | | | This is a temporary hack until the base workspace goes away. Fixes #652. -- MOS_MIGRATED_REVID=109677574
* Remove deleted WORKSPACE.go-toolchain from srcs.Gravatar David Chen2015-12-07
| | | | | | | TESTED: bazel test //src/test/... -- MOS_MIGRATED_REVID=109481372
* Fix a bug in which the main process of j2objc wrapper blocks indefinitely if ↵Gravatar Rumou Duan2015-12-04
| | | | | | | spawned threads fail. -- MOS_MIGRATED_REVID=109423785
* docker_build: Properly handle / as data_pathGravatar Kamal Marhubi2015-12-04
| | | | | | | | | | | | | | | | | | | | The handling in _compute_data_path would incorrectly result in an empty strip_prefix being passed to _dest_path. The outcome was all files would end up at the top of directory, instead of nested according to the repository structure. This change brings the behavior in line with the documentation, which states: > This path can be absolute from the workspace root if starting with a > `/` or relative to the rule's directory. Fixes https://github.com/bazelbuild/bazel/issues/677 -- Change-Id: Ifdab97ed0e851cf6cabc7bd3206343766861b725 Reviewed-on: https://bazel-review.googlesource.com/#/c/2480 MOS_MIGRATED_REVID=109418486
* Use load() to add external repositories for Skylark rules.Gravatar David Chen2015-12-04
| | | | | -- MOS_MIGRATED_REVID=109405753
* ASwB aspect: parse java packages during executionGravatar Googler2015-12-03
| | | | | -- MOS_MIGRATED_REVID=109305952
* 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
* Explicitly mention that 'manual' test targets are not matched by wildcard ↵Gravatar Nathan Harmata2015-12-03
| | | | | | | target patterns and are thus neither built nor tested by invocations like "blaze test //my/project/..." -- MOS_MIGRATED_REVID=109251573
* 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
* Add missing comma.Gravatar Han-Wen Nienhuys2015-12-01
| | | | | -- MOS_MIGRATED_REVID=109113923
* Processes runfiles for libraries in addition to binaries. The behaviorGravatar Jake Voytko2015-12-01
| | | | | | | | | now matches the documented API. -- Change-Id: I05738cc7fc60164e19e4c13822b37d032155cb06 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2380 MOS_MIGRATED_REVID=109099720
* Make go test rule run tests from the directory of the source fileGravatar David Santiago2015-12-01
| | | | | | | -- Change-Id: I82f1d300470ff69e9d70c3008cf569d9ec94764d Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2392 MOS_MIGRATED_REVID=109073649
* Go rules now set GOOS and GOARCH environment variablesGravatar David Santiago2015-12-01
| | | | | | | | | based on Bazel's "cpu" attribute. -- Change-Id: I4a625c206b2ec424a9d9eab2d20ec29447b4d2e1 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2266 MOS_MIGRATED_REVID=109064353
* Fix pkg_tar docs.Gravatar Warren Turkal2015-11-30
| | | | | | | | | | | | | | There is no tars arg. There is a deps arg that appears to work like the tars arg is described in the docs. There is also no debs arg. Signed-off-by: Warren Turkal <wt@penguintechs.org> -- Change-Id: If11e8bcae33b91c41eb11e90fa479becbb36d93c Reviewed-on: https://bazel-review.googlesource.com/2393 MOS_MIGRATED_REVID=108962257
* Refactor Skylark rules and attributes in preparation to Skylark aspects.Gravatar Dmitry Lomov2015-11-26
| | | | | | | | | | | 1. attr.<type> functions return a wrapper object instead of Attribute.Builder dierctly. 2. RuleClass is created once per the life-time of RuleFunction, during export 3. Attributes are added to the RuleClass at exporting. -- MOS_MIGRATED_REVID=108774581
* Fixes the closure binary inputs to include externsGravatar Jake Voytko2015-11-25
| | | | | | | | | The closure compiler was previously not finding externs on Linux, but was on OSX -- Change-Id: Id0830889ba431196fe6f4ce012a97c8069856ceb Reviewed-on: https://bazel-review.googlesource.com/#/c/2381 MOS_MIGRATED_REVID=108637267
* [rust] Fix bugs in Rust test rules.Gravatar David Chen2015-11-25
| | | | | | | | | | | | * Fix conflicting .deps directory creation by rust_test rule * Fix dependency symlinking in generated rust_doc_test scripts Fixes #572 TESTED: bazel test //examples/rust/... -- MOS_MIGRATED_REVID=108617330
* Generate .changes files to go along with .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | These are quite handy for integration with apt repository management tooling such as reprepro. -- Change-Id: I865fba846b2c0690ddcc558484462dd3c3e62373 Reviewed-on: https://bazel-review.googlesource.com/#/c/2291/4 MOS_MIGRATED_REVID=108603643
* Generate proper filenames for .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | | | | Various tools will break if deb filenames don't follow the right format. Retains a symlink from the <rulename>.deb to the new filename for compatibility. -- Change-Id: Ib8ba5b61fcbfe95469f0d9296a932b2a468bc4c2 Reviewed-on: https://bazel-review.googlesource.com/#/c/2290 MOS_MIGRATED_REVID=108590335
* Fix leftovers from copy/paste.Gravatar Nathan Harmata2015-11-20
| | | | | -- MOS_MIGRATED_REVID=108326014
* Rollback of commit 07475c7b3812d6194602213a69e6e9f70643b32a.Gravatar Damien Martin-Guillerez2015-11-20
| | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fixes: - Tests were missing for xzcat - xz output was not supported - bz2 input was missing declaration -- MOS_MIGRATED_REVID=108325435
* Append '/' to the root prefix when missing for tar mergingGravatar Damien Martin-Guillerez2015-11-20
| | | | | | | Fixes #624. -- MOS_MIGRATED_REVID=108259228
* Update go_binary and go_test rules to copy files in the "data"Gravatar David Santiago2015-11-18
| | | | | | | | | | attribute to runfiles. Add shell-based unit test for runfile support by these rules. -- Change-Id: Ia97278059d104b9728d53aa75c0987fc3c47b640 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2265/ MOS_MIGRATED_REVID=108139011
* Tweak the bootstrapping and build process so that the prebuilt tools under ↵Gravatar Lukacs Berki2015-11-18
| | | | | | | | | tools/jdk are not necessary anymore. Fixes #508. -- MOS_MIGRATED_REVID=108123264
* Rollback of commit 976211dd45215a6146e0ab312186de0eaa955a75.Gravatar Googler2015-11-18
| | | | | | | | | | | | | | | | | *** Reason for rollback *** broke Speckle and Dataflow *** Original change description *** [docker] Print a clearer message when xzcat cannot be found and is needed Also use the default shell env for docker deb files. Fixes #611. -- MOS_MIGRATED_REVID=108105646
* When computing the transitive config fragments required by a target,Gravatar Greg Estren2015-11-18
| | | | | | | | | | | | | | | include Skylark-declared requirements (which use names instead of fragment class, e.g. "cpp" vs. CppConfiguration.class). Also add "cpp" to Skylark java_* definitions, since java_* rules are used to trigger LipoDataTransitions and thus expected to have a CppConfiguration fragment. Test coverage: skylark.BindTest with --experimental_dynamic_configs=1. (and other Skylark tests). -- MOS_MIGRATED_REVID=108041244
* More fixing breakage of the go rule tests.Gravatar Damien Martin-Guillerez2015-11-18
| | | | | | | The test itself is still failing. I don't understand why (seems to be the fixture that is wrong). -- MOS_MIGRATED_REVID=108038743
* [docker] Print a clearer message when xzcat cannot be found and is neededGravatar Damien Martin-Guillerez2015-11-18
| | | | | | | | | Also use the default shell env for docker deb files. Fixes #611. -- MOS_MIGRATED_REVID=108035989
* Fix breakage caused by visibility.Gravatar Damien Martin-Guillerez2015-11-17
| | | | | | | See build http://ci.bazel.io/job/Bazel/221/ -- MOS_MIGRATED_REVID=108032099
* Flesh out documentation for .NET rules. Minor formatting changes toGravatar David Z. Chen2015-11-17
| | | | | | | | | csharp.bzl. -- Change-Id: Ie2a98cafdd76a7d8994f25d280d18ec848732aaa Reviewed-on: https://bazel-review.googlesource.com/#/c/2320/ MOS_MIGRATED_REVID=107987176
* Apply the docker_build directory option to tars as well as files.Gravatar Googler2015-11-17
| | | | | | | | * It enables tar packages to be placed at "/usr/local", say, and removes the need for the current workaround of repackaging the original tars. -- MOS_MIGRATED_REVID=107983091
* [docker] Fixes parsing of data_path for './'Gravatar Damien Martin-Guillerez2015-11-17
| | | | | | | Fixes #604. -- MOS_MIGRATED_REVID=107972542