google-nomulus/java/com/google/testing/builddefs
jianglai 7fbe8a064c Replace PACKAGE_NAME with package_name() in bzl files.
LSC document:
  https://docs.google.com/document/d/19GK3_SjUZeLxiML50Hz41p6hzajKgQHW51p9M2FK3SM/edit

PACKAGE_NAME was introduced in Blaze 10 years ago. Although it looks like a constant, its value depends on which BUILD file calls it. It is also magic: you can use it inside a macro; but not in top level of a .bzl file; and not inside a custom rule. In other words, it can be used exactly in the same places as glob or the native rules. For this reason, we want to replace the “constant” with a proper function to be consistent with glob and others.

This change will bring more consistency. It will simplify the code in Blaze (remove support for “dynamic values”), the spec, and the documentation.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=189919019
2018-04-02 16:18:55 -04:00
..
BUILD Import code from internal repository to git 2016-03-01 17:59:16 -05:00
GenTestRules.bzl Replace PACKAGE_NAME with package_name() in bzl files. 2018-04-02 16:18:55 -04:00