mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Swift: use http_archive instead of new_git_repository since it's faster
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
||||
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
|
||||
|
||||
_swift_prebuilt_version = "swift-5.6-RELEASE.42271.54"
|
||||
_swift_sha_map = {
|
||||
@@ -27,6 +26,14 @@ def codeql_workspace(repository_name = "codeql"):
|
||||
sha256 = sha256,
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "fishhook",
|
||||
url = "https://github.com/facebook/fishhook/archive/aadc161ac3b80db07a9908851839a17ba63a9eb1.zip",
|
||||
build_file = "@%s//swift/tools/fishhook:BUILD.fishhook.bazel" % repository_name,
|
||||
strip_prefix = "fishhook-aadc161ac3b80db07a9908851839a17ba63a9eb1",
|
||||
sha256 = "9f2cdee6dcc2039d4c47d25ab5141fe0678ce6ed27ef482cab17fe9fa38a30ce",
|
||||
)
|
||||
|
||||
maybe(
|
||||
repo_rule = http_archive,
|
||||
name = "rules_pkg",
|
||||
@@ -56,11 +63,3 @@ def codeql_workspace(repository_name = "codeql"):
|
||||
"https://github.com/bazelbuild/rules_python/archive/refs/tags/0.8.1.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
new_git_repository(
|
||||
name = "fishhook",
|
||||
commit = "aadc161ac3b80db07a9908851839a17ba63a9eb1",
|
||||
shallow_since = "1634071885 -0400",
|
||||
build_file = "@%s//swift/tools/fishhook:BUILD.fishhook.bazel" % repository_name,
|
||||
remote = "https://github.com/facebook/fishhook",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user