Skip to content

Commit

Permalink
Fix go examples (#5839)
Browse files Browse the repository at this point in the history
  • Loading branch information
mai93 authored Dec 13, 2023
1 parent e32e8de commit ec5deaf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.

This file was deleted.

6 changes: 0 additions & 6 deletions examples/go/with_go_source/with_go_source.bazelproject
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ additional_languages:
go

gazelle_target: //:gazelle

import_run_configurations:
# Test that validates that macro expansion works, as per issue:
# https://github.com/bazelbuild/intellij/issues/4112#event-7958662669
# This configuration should be executed on both 'run' (the green arrow) and 'debug' (the bug) modes.
run_configurations/test_macro_expansion.xml
14 changes: 14 additions & 0 deletions examples/go/with_proto/run_configurations/test_macro_expansion.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<configuration name="Bazel test go:go_test" type="BlazeCommandRunConfigurationType"
factoryName="Bazel Command" nameIsGenerated="true">
<blaze-settings handler-id="BlazeGoRunConfigurationHandlerProvider" blaze-command="test"
kind="go_test">
<blaze-target>//go:go_test</blaze-target>
<blaze-user-flag>--test_filter=^TestFlagMacros$</blaze-user-flag>
<blaze-user-flag>--test_env=GO_TEST_WRAP_TESTV=1</blaze-user-flag>
<blaze-user-flag>--test_env=WORKSPACE_ROOT=$WorkspaceRoot$</blaze-user-flag>
<blaze-user-flag>--test_env=PROJECT_NAME=$ProjectName$</blaze-user-flag>
</blaze-settings>
<method v="2">
<option name="Blaze.BeforeRunTask" enabled="true"/>
</method>
</configuration>
6 changes: 6 additions & 0 deletions examples/go/with_proto/with_proto.bazelproject
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ additional_languages:
go

gazelle_target: //:gazelle

import_run_configurations:
# Test that validates that macro expansion works, as per issue:
# https://github.com/bazelbuild/intellij/issues/4112#event-7958662669
# This configuration should be executed on both 'run' (the green arrow) and 'debug' (the bug) modes.
run_configurations/test_macro_expansion.xml

0 comments on commit ec5deaf

Please sign in to comment.