Skip to content

Commit

Permalink
Updates from running gazelle
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Oct 28, 2017
1 parent d58aef9 commit 15dedf8
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
16 changes: 11 additions & 5 deletions federation/model/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ go_library(
)

genrule(
name = "bindata",
srcs = glob(["*"], exclude=["bindata.go", "BUILD.bazel"]),
outs = ["bindata.go"],
cmd = """
name = "bindata",
srcs = glob(
["*"],
exclude = [
"bindata.go",
"BUILD.bazel",
],
),
outs = ["bindata.go"],
cmd = """
$(location //vendor/github.com/jteeuwen/go-bindata/go-bindata:go-bindata) \
-o "$(OUTS)" -pkg model \
-prefix $$(pwd) \
-prefix federation/model $(SRCS)
""",
tools = [
tools = [
"//vendor/github.com/jteeuwen/go-bindata/go-bindata",
],
)
15 changes: 15 additions & 0 deletions pkg/model/domodel/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
name = "go_default_library",
srcs = [
"context.go",
"droplets.go",
],
visibility = ["//visibility:public"],
deps = [
"//pkg/model:go_default_library",
"//upup/pkg/fi:go_default_library",
"//upup/pkg/fi/cloudup/dotasks:go_default_library",
],
)
1 change: 1 addition & 0 deletions upup/pkg/fi/cloudup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ go_library(
"//pkg/model:go_default_library",
"//pkg/model/awsmodel:go_default_library",
"//pkg/model/components:go_default_library",
"//pkg/model/domodel:go_default_library",
"//pkg/model/gcemodel:go_default_library",
"//pkg/model/vspheremodel:go_default_library",
"//pkg/resources/digitalocean:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions upup/pkg/fi/cloudup/dotasks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"droplet.go",
"droplet_fitask.go",
"volume.go",
"volume_fitask.go",
],
Expand Down

0 comments on commit 15dedf8

Please sign in to comment.