Skip to content

Commit 796d006

Browse files
Replace remaining new_git_repository rules with http_archive (UBC-Thunderbots#3517)
* Replace remaining `new_git_repository` rules with `http_archive` * [pre-commit.ci lite] apply automatic fixes * Fix failing rules with strip_prefix * Fix prefix typo --------- Co-authored-by: Apeiros-46B <Apeiros-46B@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 8bebefe commit 796d006

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

src/MODULE.bazel

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -202,26 +202,20 @@ http_archive(
202202
url = "https://github.com/saebyn/munkres-cpp/archive/61086fcf5b3a8ad4bda578cdc2d1dca57b548786.tar.gz",
203203
)
204204

205-
##############################################
206-
# Add new git repos (these cannot be used offline)
207-
# All of this SHOULD BE REMOVED in favour of archive_override
208-
##############################################
209-
new_git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
210-
211-
new_git_repository(
205+
http_archive(
212206
name = "LTC4151",
213207
build_file = "@//extlibs:LTC4151.BUILD",
214-
commit = "729952f10bcdcf359877b6f728565c17a8f17423",
215-
remote = "https://github.com/kerrydwong/LTC4151.git",
216-
shallow_since = "1397951678 -0400",
208+
sha256 = "6aa2dd380a13b08366338cdf0fbbeeeed96887512ac7b0753ee6ea1e8856df31",
209+
strip_prefix = "LTC4151-729952f10bcdcf359877b6f728565c17a8f17423",
210+
url = "https://github.com/kerrydwong/LTC4151/archive/729952f10bcdcf359877b6f728565c17a8f17423.tar.gz",
217211
)
218212

219-
new_git_repository(
213+
http_archive(
220214
name = "trinamic",
221215
build_file = "@//extlibs:trinamic.BUILD",
222-
commit = "0cd695fab6d43ceb121af4b8608e5d92b14e1ce9",
223-
remote = "https://github.com/trinamic/TMC-API.git",
224-
shallow_since = "1631132123 +0200",
216+
sha256 = "4c1640a87347afdc4d5954752f0e773f6d9fbb0ea0fb1481dbdb3012ec00ef8b",
217+
strip_prefix = "TMC-API-0cd695fab6d43ceb121af4b8608e5d92b14e1ce9",
218+
url = "https://github.com/analogdevicesinc/TMC-API/archive/0cd695fab6d43ceb121af4b8608e5d92b14e1ce9.tar.gz",
225219
)
226220

227221
##############################################

0 commit comments

Comments
 (0)