Skip to content

Commit

Permalink
Fix bazel php target name clash with monolith (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdunelm authored Feb 26, 2021
1 parent 0a496ea commit 8ef53db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def gapic_generator_php_repositories():
)
maybe(
php,
name = "php",
name = "php_micro",
prebuilt_phps = ["@gapic_generator_php//:rules_php_gapic/resources/php-7.4.15_linux_x86_64.tar.gz"],
urls = ["https://www.php.net/distributions/php-7.4.15.tar.gz"],
strip_prefix = "php-7.4.15",
Expand Down
2 changes: 1 addition & 1 deletion rules_php_gapic/php.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cd "$(dirname $0)/run.sh.runfiles/$(basename $WD)/{out_short_path}/install"
php_binary = rule(
implementation = _php_binary_impl,
attrs = {
"php": attr.label(default=Label("@php//:bin/php"), allow_single_file=True, executable=True, cfg="host"),
"php": attr.label(default=Label("@php_micro//:bin/php"), allow_single_file=True, executable=True, cfg="host"),
"php_composer_install": attr.label(allow_single_file=True),
"entry_point": attr.label(allow_single_file=True),
"working_directory_flag_name": attr.string(),
Expand Down
2 changes: 1 addition & 1 deletion rules_php_gapic/php_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _php_composer_install_impl(ctx):
php_composer_install = repository_rule(
implementation = _php_composer_install_impl,
attrs = {
"php": attr.label(default=Label("@php//:bin/php"), allow_single_file=True, executable=True, cfg="host"),
"php": attr.label(default=Label("@php_micro//:bin/php"), allow_single_file=True, executable=True, cfg="host"),
"composer_phar": attr.label(default="@gapic_generator_php//:rules_php_gapic/resources/composer.phar"),
"composer_json": attr.label(allow_single_file=True),
}
Expand Down

0 comments on commit 8ef53db

Please sign in to comment.