Skip to content

Commit ecd8215

Browse files
Revert "Updates to readme (#163)" (#164)
This reverts commit 0b11ec8.
1 parent 8b1232e commit ecd8215

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ workspace.
104104
Path to content hash json file. It's a map which maps
105105
relative file path from workspace path to its
106106
content hash. Files in this map will skip content
107-
hashing and use provided value
107+
hashing and use provided value
108108
-h, --help Show this help message and exit.
109109
-k, --[no-]keep_going This flag controls if `bazel query` will be executed
110110
with the `--keep_going` flag or not. Disabling this
@@ -155,8 +155,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")
155155
http_jar(
156156
name = "bazel_diff",
157157
urls = [
158-
"https://github.com/Tinder/bazel-diff/releases/download/4.3.0/bazel-diff_deploy.jar",
158+
"https://github.com/Tinder/bazel-diff/releases/download/4.0.5/bazel-diff_deploy.jar",
159159
],
160+
sha256 = "59f2a614f90b4c2a6c83f1e6146d8722dfaac3a1d8f42734dcbb6ccf373a1cbd",
160161
)
161162
```
162163

@@ -217,33 +218,30 @@ java -jar bazel-bin/src/main/java/com/bazel_diff/bazel-diff_deploy.jar # This JA
217218
Add the following to your `WORKSPACE` file to add the external repositories, replacing the `RELEASE_ARCHIVE_URL` with the archive url of the bazel-diff release you wish to depend on:
218219

219220
```bazel
220-
load("//:repositories.bzl", "bazel_diff_dependencies")
221+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
221222

222-
bazel_diff_dependencies()
223-
224-
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
223+
http_archive(
224+
name = "bazel_diff",
225+
urls = [
226+
"RELEASE_ARCHIVE_URL",
227+
],
228+
sha256 = "UPDATE_ME",
229+
strip_prefix = "UPDATE_ME"
230+
)
225231

226-
rules_proto_dependencies()
232+
load("@bazel_diff//:repositories.bzl", "bazel_diff_dependencies")
227233

228-
rules_proto_toolchains()
234+
bazel_diff_dependencies()
229235

230236
load("@rules_jvm_external//:defs.bzl", "maven_install")
231-
load("//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
232-
load("@io_bazel_rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
233-
234-
kotlin_repositories()
235-
236-
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
237-
238-
kt_register_toolchains()
237+
load("@bazel_diff//:artifacts.bzl", "BAZEL_DIFF_MAVEN_ARTIFACTS")
239238

240239
maven_install(
241240
name = "bazel_diff_maven",
242241
artifacts = BAZEL_DIFF_MAVEN_ARTIFACTS,
243-
fetch_sources = True,
244-
generate_compat_repositories = True,
245242
repositories = [
246-
"https://repo1.maven.org/maven2/",
243+
"http://uk.maven.org/maven2",
244+
"https://jcenter.bintray.com/",
247245
],
248246
)
249247
```

0 commit comments

Comments
 (0)