forked from cgrindel/rules_swift_package_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
71 lines (49 loc) · 2.02 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
workspace(name = "vapor_example")
local_repository(
name = "rules_swift_package_manager",
path = "../..",
)
load("@rules_swift_package_manager//:deps.bzl", "swift_bazel_dependencies")
swift_bazel_dependencies()
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")
bazel_starlib_dependencies()
# MARK: - Gazelle
# gazelle:repo bazel_gazelle
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib_gazelle_plugin",
sha256 = "747addf3f508186234f6232674dd7786743efb8c68619aece5fb0cac97b8f415",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-gazelle-plugin-1.5.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-gazelle-plugin-1.5.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@bazel_skylib_gazelle_plugin//:workspace.bzl", "bazel_skylib_gazelle_plugin_workspace")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@rules_swift_package_manager//:go_deps.bzl", "swift_bazel_go_dependencies")
# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()
bazel_skylib_gazelle_plugin_workspace()
go_rules_dependencies()
go_register_toolchains(version = "1.21.1")
gazelle_dependencies()
# MARK: - Swift Toolchain
http_archive(
name = "build_bazel_rules_swift",
sha256 = "9bc9dc949062405412404c0f07f7323ba310f3f91f42af414ac27e338ba7bb8c",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.17.0/rules_swift.1.17.0.tar.gz",
)
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
load("//swift:deps.bzl", "swift_dependencies")
# gazelle:repository_macro swift/deps.bzl%swift_dependencies
swift_dependencies()
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()