Skip to content

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hale committed Dec 15, 2023
1 parent 47844d8 commit 0bba881
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install goa
run: go install goa.design/goa/v3/cmd/goa@v3
- name: Generate Server, CLI and Service definitions
run: goa gen github.com/t-hale/stox/design
run: bazel build //:goagen --action_env=GOCACHE=${HOME}/.cache --action_env=GOPATH=${GOPATH} --spawn_strategy=local
- name: Run gazelle to generate BUILD files
run: bazel run //:gazelle
- name: Build the stox service
Expand Down
37 changes: 10 additions & 27 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,16 @@ go_library(
],
)

#genrule(
# name = "goagen",
# # srcs = [
# # "//design:goafiles",
# # ],
# outs = [
# "gen/http/cli/server/cli.go",
# "gen/http/openapi.json",
# "gen/http/openapi.yaml",
# "gen/http/openapi3.json",
# "gen/http/openapi3.yaml",
# "gen/http/stox/client/cli.go",
# "gen/http/stox/client/client.go",
# "gen/http/stox/client/encode_decode.go",
# "gen/http/stox/client/paths.go",
# "gen/http/stox/client/types.go",
# "gen/http/stox/server/encode_decode.go",
# "gen/http/stox/server/paths.go",
# "gen/http/stox/server/server.go",
# "gen/http/stox/server/types.go",
# "gen/log/logger.go",
# "gen/stox/client.go",
# "gen/stox/endpoints.go",
# "gen/stox/service.go",
# ],
# cmd = "goa gen github.com/t-hale/stox/design",
#)
genrule(
name = "goagen",
srcs = [
"//design:goafiles",
],
outs = [
"out.txt",
],
cmd = "goa gen github.com/t-hale/stox/design > $@",
)

gazelle(
name = "gazelle-update-repos",
Expand Down

0 comments on commit 0bba881

Please sign in to comment.