diff --git a/README.md b/README.md index dcaefef..4327426 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ This is not an officially supported Google product. ## Setup -1. In the `WORKSPACE` file of your Bazel project add the following: +1. In the WORKSPACE file of your Bazel project add the following: ```python git_repository( name = "com_github_google_rules_install", - remote = "https://github.com/google/bazel_rules_install.git", - commit = "{COMMIT_ID}", + remote = "https://github.com/bazelbuild/rules_install.git", + tag = '0.0.1', ) load("@com_github_google_rules_install//:deps.bzl", "install_rules_dependencies") @@ -22,12 +22,12 @@ This is not an officially supported Google product. install_rules_dependencies() ``` -1. In the `BUILD` file of the package where you want to add an installer add the following: +1. In the BUILD file of the package where you want to add an installer add the following: ````python # In file src/path/to/pkg/BUILD: - load("@com_github_google_rules_install//installer:def.bzl", "installer") + load("@com_github_google_rules_install//:defs.bzl", "installer") installer( name = "install_foo", @@ -35,10 +35,10 @@ This is not an officially supported Google product. ) ```` -1. Run the installer using `bazel run -c opt`. This example installs `foo` in `~/bin`: +1. Run the installer using `bazel run`. This example installs `foo` in `~/bin`: ```shell - bazel run -c opt //src/path/to/pkg:install_foo ~/bin + bazel run //src/path/to/pkg:install_foo -c opt ~/bin ``` ## See also