aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs
Commit message (Collapse)AuthorAge
* Remove deprecated Skylark rulesGravatar Kristina Chodorow2016-03-24
| | | | | -- MOS_MIGRATED_REVID=117968196
* Build the jsonnet tool for the host when cross-compiling.Gravatar Googler2016-03-23
| | | | | | | RELNOTES: Build the jsonnet tool for the host when cross-compiling. -- MOS_MIGRATED_REVID=117927673
* 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
* Enable overriding jsonnet binaries and stdlib for Jsonnet rules.Gravatar David Chen2016-03-15
| | | | | | | RELNOTES: Enable overriding jsonnet binaries and stdlib for Jsonnet rules. -- MOS_MIGRATED_REVID=117267276
* Fix repository names for GroovyGravatar Erik Kuefler2016-03-15
| | | | | | | -- Change-Id: I1831a657552a661a555c7f8bef54e8f46ddd482d Reviewed-on: https://bazel-review.googlesource.com/#/c/3050/ MOS_MIGRATED_REVID=117238730
* Update D and Jsonnet rules to reference @bazel_tools.Gravatar David Chen2016-03-04
| | | | | -- MOS_MIGRATED_REVID=116296119
* Fixes typos in the scala rule stubGravatar Damien Martin-Guillerez2016-03-04
| | | | | -- MOS_MIGRATED_REVID=116264418
* Fixed typo in rules for Scala URLGravatar Fedor Korotkov2016-03-04
| | | | | | | | The actual url is https://github.com/bazelbuild/rules_scala and not https://github.com/bazelbuild/scala_rules :-) -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/980 MOS_MIGRATED_REVID=116261238
* Use @bazel_tools// to reference tools repository for Sass rules.Gravatar David Chen2016-03-03
| | | | | | | Fixes #1002 -- MOS_MIGRATED_REVID=116183718
* Docker: fix runfiles path when the incremental loader is called from another ↵Gravatar Damien Martin-Guillerez2016-03-01
| | | | | | | | | | Bazel binary. Also add the possibility to select the docker binary using an environment variable. -- MOS_MIGRATED_REVID=115994650
* pkg: use a flag file instead of passing the list of arguments in the command ↵Gravatar Damien Martin-Guillerez2016-03-01
| | | | | | | | | line Big pkg can run over the command line limit. -- MOS_MIGRATED_REVID=115950963
* Fix load paths in Groovy documentationGravatar Erik Kuefler2016-03-01
| | | | | | | -- Change-Id: Iedfdf4e0e1e274a90a5c12c2caedbecccb9c0eff Reviewed-on: https://bazel-review.googlesource.com/#/c/2992/ MOS_MIGRATED_REVID=115863226
* Add a bazel-srcs target to the top-level package containing all Bazel sourcesGravatar Damien Martin-Guillerez2016-02-29
| | | | | | | | This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
* Remove scala rules from the Bazel source treeGravatar Damien Martin-Guillerez2016-02-24
| | | | | | | | | They have now moved to https://github.com/bazelbuild/scala_rules RELNOTES[INC]: Scala rules were deleted from the @bazel_tools repository, see https://github.com/bazelbuild/rules_scala#scala-rules-for-bazel -- MOS_MIGRATED_REVID=115432354
* Use SSL for scala repositoryGravatar Michajlo Matijkiw2016-02-24
| | | | | | | | | | Potentially fixes #968. The http url redirects to https which our redirect logic currently doesn't handle. Confirmed the https location is correct manually. -- MOS_MIGRATED_REVID=115412099
* Adds export and runtime_deps support to scala ruleGravatar Oscar Boykin2016-02-18
| | | | | | | | | This brings the scala rules a step closer to feature parity with java. -- Change-Id: I21e6929a36f5084a29b230f1b91307dd5b012d4c Reviewed-on: https://github.com/bazelbuild/bazel/pull/916 MOS_MIGRATED_REVID=114947019
* 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
* 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
* Add scala tests to CIGravatar Oscar Boykin2016-02-15
| | | | | | | -- Change-Id: If286a9718e036d2bd555baf78600e9208ba5a990 Reviewed-on: https://github.com/bazelbuild/bazel/pull/872 MOS_MIGRATED_REVID=114563576
* 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
* docker: Exclude .changes files when collecting debsGravatar Benjamin Staffin2016-02-11
| | | | | | | -- Change-Id: I7badee212bd05178a30a6ff4c73c8d62258d2c1d Reviewed-on: https://bazel-review.googlesource.com/#/c/2841 MOS_MIGRATED_REVID=114330213
* Add scala_test to loadGravatar Oscar Boykin2016-02-10
| | | | | | | -- Change-Id: Ifbbda9bb01cd2d7350521183b7754c5004b2ab3d Reviewed-on: https://github.com/bazelbuild/bazel/pull/862 MOS_MIGRATED_REVID=114213645
* Update documentation of skylark rules: correct load statementsGravatar Damien Martin-Guillerez2016-02-10
| | | | | | | Fixes #864. -- MOS_MIGRATED_REVID=114208872
* When building Groovy jars, read the list of classes from a file instead of ↵Gravatar Erik Kuefler2016-02-07
| | | | | | | | | | | | passing them on the command line. This helps avoid problems when the OS rejects the command line for getting too long, which is particularly likely on OS X. -- Change-Id: I84c7102f15b0162291664df4869f92232d010c8d Reviewed-on: https://bazel-review.googlesource.com/2820 MOS_MIGRATED_REVID=113982499
* [d] Update D rules to DMD 2.070.0.Gravatar David Chen2016-02-04
| | | | | | | | | Fixes #830 RELNOTES: [d] Update to DMD 2.070.0 -- MOS_MIGRATED_REVID=113830766
* Fix a reference to a local-jdk target.Gravatar Erik Kuefler2016-02-02
| | | | | | | | | Looks like this was missed in 88821141d6812bbde64f0d49087533f87ca6f331 -- Change-Id: Ib7709722ae3b07ef7e24bcbbab642204134fa062 Reviewed-on: https://bazel-review.googlesource.com/#/c/2810/ MOS_MIGRATED_REVID=113611789
* Add a scala_test rule to BazelGravatar Dino Wernli2016-02-02
| | | | | | | | | | | | This implements a scala_test rule analogous to the java_test rule. It uses the standard scalatest library, and adds the corresponding jar(s) to the WORKSPACE file. The rule is tested by adding a proof-of-concept test target to the scala examples. Link to discussion thread: https://groups.google.com/d/msg/bazel-dev/5Kbbwr11XOA/znTY-H1DBgAJ Fixes #503. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/657 MOS_MIGRATED_REVID=113526680
* 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
* Support transitive deps in GroovyGravatar Erik Kuefler2016-01-27
| | | | | | | | | | This just requires passing the specified deps through to the java_import wrapping the Groovy jar -- Change-Id: Ib453d560a721fdb31217f8e604703fa6bc362328 Reviewed-on: https://bazel-review.googlesource.com/2600 MOS_MIGRATED_REVID=113149555
* Convert skylark rules and tests to use _ in repo namesGravatar Kristina Chodorow2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113081497
* Make local-jdk conform to workspace name rulesGravatar Kristina Chodorow2016-01-27
| | | | | | | | RELNOTES: JDK-related targets are now available via @local_jdk (instead of @local-jdk). -- MOS_MIGRATED_REVID=113067049
* Add the @bazel_tools prefix to docker and pkg toolingGravatar Damien Martin-Guillerez2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113052852
* [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
* 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
* Fixes formatting in scala rules doc.Gravatar Alex Humesky2016-01-07
| | | | | -- MOS_MIGRATED_REVID=111419811
* 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
* 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
* 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
* 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
* 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
* 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
* 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