Skip to content

Commit

Permalink
Enable Renovate to track our dependencies managed by Bazel
Browse files Browse the repository at this point in the history
Renovate works only with plain strings, not constructed ones.
  • Loading branch information
martis42 committed Jan 14, 2024
1 parent f64ecaf commit f7b07b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"enabled": true
},
"enabledManagers": [
"bazel",
"bazel-module",
"github-actions",
"pip_requirements",
"poetry",
Expand Down
13 changes: 5 additions & 8 deletions third_party/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,28 @@ load("@depend_on_what_you_use//third_party/pcpp:repository.bzl", "pcpp")

def dependencies():
# Keep in sync with MODULE.bazel
rules_python_version = "0.28.0"
maybe(
http_archive,
name = "rules_python",
sha256 = "d70cd72a7a4880f0000a6346253414825c19cdd40a28289bdf67b8e6480edff8",
strip_prefix = "rules_python-{}".format(rules_python_version),
urls = ["https://github.com/bazelbuild/rules_python/releases/download/{v}/rules_python-{v}.tar.gz".format(v = rules_python_version)],
strip_prefix = "rules_python-0.28.0",
urls = ["https://github.com/bazelbuild/rules_python/releases/download/0.28.0/rules_python-0.28.0.tar.gz"],
)

# Keep in sync with MODULE.bazel
rules_cc_version = "0.0.9"
maybe(
http_archive,
name = "rules_cc",
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf",
strip_prefix = "rules_cc-{}".format(rules_cc_version),
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/{v}/rules_cc-{v}.tar.gz".format(v = rules_cc_version)],
strip_prefix = "rules_cc-0.0.9",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"],
)

# Keep in sync with MODULE.bazel
skylib_version = "1.5.0"
http_archive(
name = "bazel_skylib",
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/{v}/bazel-skylib-{v}.tar.gz".format(v = skylib_version)],
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"],
)

pcpp()
5 changes: 2 additions & 3 deletions third_party/pcpp/repository.bzl
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def pcpp():
version = "1.30"
http_archive(
name = "dwyu_pcpp",
sha256 = "5af9fbce55f136d7931ae915fae03c34030a3b36c496e72d9636cedc8e2543a1",
strip_prefix = "pcpp-{}".format(version),
strip_prefix = "pcpp-1.30",
build_file = "@depend_on_what_you_use//third_party/pcpp:pcpp.BUILD",
urls = [
"https://files.pythonhosted.org/packages/41/07/876153f611f2c610bdb8f706a5ab560d888c938ea9ea65ed18c374a9014a/pcpp-{v}.tar.gz".format(v = version),
"https://files.pythonhosted.org/packages/41/07/876153f611f2c610bdb8f706a5ab560d888c938ea9ea65ed18c374a9014a/pcpp-1.30.tar.gz",
],
)

0 comments on commit f7b07b0

Please sign in to comment.