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

  1. replace PACKAGE_NAME with package_name() call
  2. replace REPOSITORY_NAME with repository_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

Most upvoted comments

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

@davido Looks like Gerrit still use PACKAGE_NAME in its bzl file […] Can you help fixing that?

Done.