bazel: incompatible_package_name_is_a_function: Remove PACKAGE_NAME and REPOSITORY_NAME
This is a tracking issue for offering a migration solution for
--incompatible_package_name_is_a_function
This flag disables use of the skylark constants PACKAGE_NAME
and REPOSITORY_NAME
. Users should use package_name()
and repository_name()
instead.
Migration
- replace
PACKAGE_NAME
withpackage_name()
call - replace
REPOSITORY_NAME
withrepository_name()
call
The behavior is identical
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (16 by maintainers)
Commits related to this issue
- Switch the default for --incompatible_package_name_is_a_function #5827 RELNOTES[INC]: --incompatible_package_name_is_a_function now defaults to true. The magic values PACKAGE_NAME and REPOSITORY_NAM... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Remove duplicate checks in Environment There was some duplication between Environment and LValue. The check in the DynamicFrame was removed. The dynamic frame should be completely separate from user... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Switch back the default for --incompatible_package_name_is_a_function The value was changed in https://github.com/bazelbuild/bazel/commit/4a8bacd33d96b0499bb4d8303d285133268c01b4, but it is breaking ... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Bazel: Replace PACKAGE_NAME constant with package_name() function PACKAGE_NAME was deprecated in favor of package_name() function and is going to be removed in future Bazel releases. Moreover Bazel i... — committed to GerritCodeReview/gerrit by davido 6 years ago
- Automated rollback of commit 4b6da43db972d335d182d9bde708b075710c2f6b. *** Reason for rollback *** roll forward, after fix and new test *** Original change description *** Automated rollback of co... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Cleaner separatation between Module and Universe variables. - In the global frame, rename "parent" into "universe" to clarify what it is. - Function `moduleLookup` now does the right thing. It doesn'... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Automated rollback of commit e4e2632fc8a1a5b56169c06c9f2d0f6f94321aba. *** Reason for rollback *** Break half of the downstream projects in Bazel CI https://buildkite.com/bazel/bazel-with-downstream... — committed to bazelbuild/bazel by meteorcloudy 6 years ago
- Roll forward (https://github.com/bazelbuild/bazel/commit/3b3b46994a19b933576237adebcf3f8b61dbcbc1). Many repositories have been updated. *** Original change description *** Automated rollback of co... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Release 0.20.0 (2018-11-30) Baseline: 7bf7f031c332dc483257248d1c1f98ad75bbc83b Cherry picks: + fd52341505e725487c6bc6dfbe6b5e081aa037da: update bazel-toolchains pin to latest release Part o... — committed to bazelbuild/bazel by a-googler 6 years ago
- Release 0.20.0 (2018-11-30) Baseline: 7bf7f031c332dc483257248d1c1f98ad75bbc83b Cherry picks: + fd52341505e725487c6bc6dfbe6b5e081aa037da: update bazel-toolchains pin to latest release Part o... — committed to databricks/bazel by a-googler 6 years ago
- Code simplification in the environment, remove old incompatible flags Remove --incompatible_static_name_resolution and --incompatible_package_name_is_a_function #5827 #5637 RELNOTES: None. PiperOri... — committed to bazelbuild/bazel by laurentlb 6 years ago
- Bazel: Replace PACKAGE_NAME constant with package_name() function PACKAGE_NAME was deprecated in favor of package_name() function and is going to be removed in future Bazel releases. Moreover Bazel i... — committed to GerritCodeReview/bazlets by dpursehouse 5 years ago
- Move to Bazel 0.23.0. This is the last version of Bazel to support the use of the CROSSTOOL file. The next upgrade migth be a doozy. It was necessary to bump the version of protobuf in order to get ... — committed to rpwoodbu/mosh-chrome by rpwoodbu 2 years ago
I hope major Bazel-using packages will release fixed versions before this deprecation is finished. The latest release of protobuf is still using
PACKAGE_NAME
, though it has been fixed on master.@meteorcloudy
Done.