-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix proto_compiled_sources with strip_import_prefix (#365)
* Migrate example tests to "test_content" attribute * Simplify Makefile * Switch to proto_compile_assets * be more tricky with unused imports * Augment test with strip_import_prefix case * Modify test such that package matches directory structure * Modify test to not include a package * Test README
- Loading branch information
Showing
23 changed files
with
330 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
BAZEL := bazel | ||
|
||
.PHONY: tidy | ||
tidy: deps | ||
$(BAZEL) run @go_sdk//:bin/go -- mod tidy | ||
$(BAZEL) run @go_sdk//:bin/go -- mod vendor | ||
bazel run @go_sdk//:bin/go -- mod tidy | ||
bazel run @go_sdk//:bin/go -- mod vendor | ||
find vendor -name 'BUILD.bazel' | xargs rm | ||
$(BAZEL) run //:update_go_deps | ||
$(BAZEL) run //:buildifier | ||
$(BAZEL) run //:gazelle | ||
bazel run //:update_go_deps | ||
bazel run //:buildifier | ||
bazel run //:gazelle | ||
|
||
.PHONY: gazelle | ||
gazelle: | ||
$(BAZEL) run //:gazelle | ||
bazel run //:gazelle | ||
|
||
.PHONY: deps | ||
deps: | ||
$(BAZEL) build //deps:* | ||
bazel build //deps:* | ||
cp -f ./bazel-bin/deps/*.bzl deps/ | ||
chmod 0644 deps/*.bzl | ||
$(BAZEL) run //:buildifier -- deps/ | ||
bazel run //:buildifier -- deps/ | ||
|
||
.PHONY: site | ||
site: | ||
$(BAZEL) build //example/golden:* | ||
bazel build //example/golden:* | ||
cp -f ./bazel-bin/example/golden/*.md docs/ | ||
|
||
.PHONY: golden_test | ||
golden_test: | ||
$(BAZEL) test //example/golden:golden_test | ||
bazel test //example/golden:golden_test --test_output=streamed | ||
|
||
.PHONY: example_test | ||
example_test: | ||
bazel test //example/golden:proto_compiled_sources_test --test_output=streamed | ||
|
||
.PHONY: test | ||
test: | ||
$(BAZEL) test --keep_going //example/... //pkg/... //plugin/... //language/... //rules/... //toolchain/... \ | ||
bazel test --keep_going //example/... //pkg/... //plugin/... //language/... //rules/... //toolchain/... \ | ||
--deleted_packages=//plugin/grpc-ecosystem/grpc-gateway | ||
|
||
.PHONY: get | ||
get: | ||
$(BAZEL) run @go_sdk//:bin/go -- get github.com/bazelbuild/[email protected] | ||
$(BAZEL) run @go_sdk//:bin/go -- mod download github.com/bazelbuild/buildtools | ||
$(BAZEL) run @go_sdk//:bin/go -- mod vendor | ||
bazel run @go_sdk//:bin/go -- get github.com/bazelbuild/[email protected] | ||
bazel run @go_sdk//:bin/go -- mod download github.com/bazelbuild/buildtools | ||
bazel run @go_sdk//:bin/go -- mod vendor | ||
|
||
update_pnpm_lock: | ||
# nvm use 18 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.