Skip to content

Commit c81d7cd

Browse files
chenrui333ittaiz
authored andcommitted
chore(docs): update WORKSPACE setup for skylib (#926)
1 parent 6c16cff commit c81d7cd

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,19 @@ This project defines core build rules for [Scala](https://www.scala-lang.org/) t
2929
2. Add the following to your `WORKSPACE` file and update the `githash` if needed:
3030

3131
```python
32+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
33+
34+
# bazel-skylib 0.8.0 released 2019.03.20 (https://github.com/bazelbuild/bazel-skylib/releases/tag/0.8.0)
35+
skylib_version = "0.8.0"
36+
http_archive(
37+
name = "bazel_skylib",
38+
type = "tar.gz",
39+
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format (skylib_version, skylib_version),
40+
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
41+
)
42+
3243
rules_scala_version="69d3c5b5d9b51537231746e93b4383384c9ebcf4" # update this as needed
3344

34-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3545
http_archive(
3646
name = "io_bazel_rules_scala",
3747
strip_prefix = "rules_scala-%s" % rules_scala_version,
@@ -54,15 +64,6 @@ http_archive(
5464
strip_prefix = "protobuf-%s" % protobuf_version,
5565
sha256 = protobuf_version_sha256,
5666
)
57-
58-
# bazel-skylib 0.8.0 released 2019.03.20 (https://github.com/bazelbuild/bazel-skylib/releases/tag/0.8.0)
59-
skylib_version = "0.8.0"
60-
http_archive(
61-
name = "bazel_skylib",
62-
type = "tar.gz",
63-
url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib.{}.tar.gz".format (skylib_version, skylib_version),
64-
sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e",
65-
)
6667
```
6768

6869
This will load the `rules_scala` repository at the commit sha

0 commit comments

Comments
 (0)