Skip to content

Commit

Permalink
Update rules_go, skylib and catch2 to obtain new release of platforms (
Browse files Browse the repository at this point in the history
…#300)

* Update rules_go, skylib and catch2 to obtain new release of platforms

* Importing less headers

* Downgrade catch2, gtest to support older Bazel/STL
  • Loading branch information
comius authored Aug 11, 2023
1 parent ce89f49 commit e784965
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 22 deletions.
1 change: 1 addition & 0 deletions third-party-dependencies/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ cc_test(
deps = [
":my_lib",
"@catch2",
"@catch2//:catch2_with_main",
],
)

Expand Down
6 changes: 3 additions & 3 deletions third-party-dependencies/third_party/bazel_skylib/direct.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def load_bazel_skylib():
maybe(
http_archive,
name = "bazel_skylib",
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
],
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
)
11 changes: 0 additions & 11 deletions third-party-dependencies/third_party/catch2/catch2.BUILD

This file was deleted.

7 changes: 3 additions & 4 deletions third-party-dependencies/third_party/catch2/direct.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def load_catch2():
maybe(
http_archive,
name = "catch2",
url = "https://github.com/catchorg/Catch2/archive/v2.6.1.zip",
sha256 = "cc21033c8085c83a867153982e90514c6b6072bed8cec0e688663cfcdaa8bb32",
strip_prefix = "Catch2-2.6.1",
build_file = "//third_party/catch2:catch2.BUILD",
url = "https://github.com/catchorg/Catch2/archive/refs/tags/v2.13.9.zip",
sha256 = "860e3917f07d7ee75654f86900d50a03acf0047f6fe5ba31d437e1e9cda5b456",
strip_prefix = "Catch2-2.13.9",
)
6 changes: 3 additions & 3 deletions third-party-dependencies/third_party/rules_go/direct.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def load_rules_go():
maybe(
http_archive,
name = "io_bazel_rules_go",
sha256 = "b725e6497741d7fc2d55fcc29a276627d10e43fa5d0bb692692890ae30d98d00",
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.24.3/rules_go-v0.24.3.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
def load_rules_go_transitive_dependencies():
load_protobuf_transitive_dependencies()
go_rules_dependencies()
go_register_toolchains()
go_register_toolchains(version = "1.20.5")

0 comments on commit e784965

Please sign in to comment.