forked from coreos/tectonic-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
84 lines (66 loc) · 2.74 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
72
73
74
75
76
77
78
79
80
81
82
83
84
workspace(name = "tectonic_installer")
terrafom_version = "0.10.8"
provider_matchbox_version = "0.2.2"
supported_platforms = [
"linux",
"darwin",
]
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.8.1/rules_go-0.8.1.tar.gz",
sha256 = "90bb270d0a92ed5c83558b2797346917c46547f6f7103e648941ecdb6b9d0e72",
)
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "7550c6f7904f602b69c2a69d92f7c739db87479336554c7a31d0649519ec414e",
type = "tar.gz",
strip_prefix = "rules_nodejs-0.3.1",
url = "https://codeload.github.com/bazelbuild/rules_nodejs/tar.gz/0.3.1",
)
http_archive(
name = "bazel_gazelle",
sha256 = "4952295aa35241082eefbb53decd7d4dd4e67a1f52655d708a1da942e3f38975",
url = "https://github.com/bazelbuild/bazel-gazelle/archive/eaa1e87d2a3ca716780ca6650ef5b9b9663b8773.zip",
strip_prefix = "bazel-gazelle-eaa1e87d2a3ca716780ca6650ef5b9b9663b8773",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains", "go_repository")
go_rules_dependencies()
go_register_toolchains()
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
node_repositories(package_json = ["//installer/frontend:package.json"])
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
# Runtime binary dependencies follow.
# These will be fetched and included in the build output verbatim.
#
[new_http_archive(
name = "terraform_runtime_%s" % platform,
build_file_content = """exports_files(["terraform"], visibility = ["//visibility:public"])""",
type = "zip",
url = "https://releases.hashicorp.com/terraform/%s/terraform_%s_%s_amd64.zip" % (terrafom_version, terrafom_version, platform),
) for platform in supported_platforms]
[new_http_archive(
name = "terraform_provider_matchbox_%s" % platform,
build_file_content = """exports_files(
["terraform-provider-matchbox"],
visibility = ["//visibility:public"]
)""",
strip_prefix = "terraform-provider-matchbox-v%s-%s-amd64/" % (provider_matchbox_version, platform),
url = "https://github.com/coreos/terraform-provider-matchbox/releases/download/v%s/terraform-provider-matchbox-v%s-%s-amd64.tar.gz" % (provider_matchbox_version, provider_matchbox_version, platform),
) for platform in supported_platforms]
# Import Go dependencies.
go_repository(
name = "com_github_hashicorp_hcl",
importpath = "github.com/hashicorp/hcl",
commit = "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8",
)
go_repository(
name = "com_github_segmentio_terraform-docs",
importpath = "github.com/segmentio/terraform-docs",
tag = "v0.3.0",
)
go_repository(
name = "com_github_tj_docopt",
importpath = "github.com/tj/docopt",
tag = "v1.0.0",
)