Skip to content

Commit ab35e8b

Browse files
committed
Replace http fetch of spdlog dep with git clone
Github doesn't promise byte for byte archives of specific commits, so it's likely better to fetch this dep via git where we can specify the specific commit we want to use.
1 parent 159409e commit ab35e8b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

WORKSPACE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
23

34
# Bazel
45
# =========================================================
@@ -140,12 +141,11 @@ http_archive(
140141
)
141142

142143
# 1.11.0 + fixes for -Wshadow.
143-
http_archive(
144+
git_repository(
144145
name = "spdlog", # MIT
145146
build_file = "//third_party:spdlog.BUILD",
146-
sha256 = "6be1b1c8ec9ed82b1f5c4d793678d5d9446e000eb38bb53c7d470365171722fd",
147-
strip_prefix = "spdlog-6df64c6c34997e298a81150b9ce55c440c6f503f",
148-
url = "https://github.com/gabime/spdlog/archive/6df64c6c34997e298a81150b9ce55c440c6f503f.tar.gz",
147+
commit = "6df64c6c34997e298a81150b9ce55c440c6f503f",
148+
remote = "https://github.com/gabime/spdlog/",
149149
)
150150

151151
http_archive(

0 commit comments

Comments
 (0)