Skip to content

Commit

Permalink
fix gazelle resolution of embedded site
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Murphy <[email protected]>
  • Loading branch information
Elliot Murphy committed Jan 27, 2022
1 parent 4426c49 commit 731ef5b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package(default_visibility = ["//visibility:public"])

# gazelle:prefix github.com/kindlyops/vbs
# gazelle:exclude dummy.go
# gazelle:exclude github.com/kindlyops/vbs/embeddy
# gazelle:resolve go github.com/kindlyops/vbs/embeddy //embeddy:go_default_library
gazelle(
name = "gazelle",
external = "vendored",
Expand Down
2 changes: 1 addition & 1 deletion cmd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ go_library(
importpath = "github.com/kindlyops/vbs/cmd",
visibility = ["//visibility:public"],
deps = [
"//embeddy:go_default_library",
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
"//vendor/github.com/aws/aws-sdk-go/aws/session:go_default_library",
"//vendor/github.com/aws/aws-sdk-go/service/ivs:go_default_library",
Expand All @@ -25,7 +26,6 @@ go_library(
"//vendor/github.com/rs/zerolog/log:go_default_library",
"//vendor/github.com/spf13/cobra:go_default_library",
"//vendor/github.com/spf13/viper:go_default_library",
"//embeddy:go_default_library", # keep
] + select({
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/Microsoft/go-winio:go_default_library",
Expand Down
6 changes: 2 additions & 4 deletions embeddy/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ next(
name = "next_build",
outs = [".next"],
args = ["build $(RULEDIR)"],
data = [":copy_source_files"], # + NPM_DEPENDENCIES,
data = [":copy_source_files"], # + NPM_DEPENDENCIES,
tags = ["no-sandbox"],
)

Expand All @@ -41,7 +41,7 @@ next(
"-o $(@)",
],
data = [":next_build"],
visibility = ["//visibility:public"]
visibility = ["//visibility:public"],
)

static_site_embedder(
Expand All @@ -57,5 +57,3 @@ go_library(
importpath = "github.com/kindlyops/vbs/embeddy",
visibility = ["//visibility:public"],
)


7 changes: 7 additions & 0 deletions embeddy/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//go:build neverbuild
// +build neverbuild

package embeddy

func main() {
}

0 comments on commit 731ef5b

Please sign in to comment.