-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): upgrade configure directive suggestions to use aspect …
…directives (#7025) This is only error/suggestion messaging that the CLI outputs and does not have any functional change, `# gazelle:` is still supported. Note that we still refer to all the gazelle builtin directives, refer people to gazelle docs etc, those docs will still have `# gazelle:` which could cause some confusion? 🤷 Is this the direction we'd like to go? We are already requiring our gazelle patches in order to use our gazelle plugins, support for `# aspect:` is enabled with a 1-line patch. We could also do this only for orion and not our existing js/kotlin extensions. --- ### Changes are visible to end-users: no ### Test plan - Covered by existing test cases GitOrigin-RevId: 94a01922edd9ae69532fbf75105470075327d756
- Loading branch information
Showing
25 changed files
with
48 additions
and
123 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
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
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
Empty file.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Source rule generation error: failed to generate target "//:rules_conflicting_name" of kind "ts_project": a target of kind "filegroup" with the same name already exists. Use the '# gazelle:js_project_naming_convention' directive to change the naming convention. | ||
Source rule generation error: failed to generate target "//:rules_conflicting_name" of kind "ts_project": a target of kind "filegroup" with the same name already exists. Use the '# aspect:js_project_naming_convention' directive to change the naming convention. | ||
|
||
For example: | ||
# gazelle:js_project_naming_convention {dirname}_js | ||
# gazelle:js_tests_naming_convention {dirname}_js_tests | ||
# aspect:js_project_naming_convention {dirname}_js | ||
# aspect:js_tests_naming_convention {dirname}_js_tests | ||
|
6 changes: 3 additions & 3 deletions
6
gazelle/js/tests/rules_conflicting_name_mapped_kind/expectedStderr.txt
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,6 +1,6 @@ | ||
Source rule generation error: failed to generate target "//:rules_conflicting_name_mapped_kind" of kind "ts_override": a target of kind "asdf" with the same name already exists. Use the '# gazelle:js_project_naming_convention' directive to change the naming convention. | ||
Source rule generation error: failed to generate target "//:rules_conflicting_name_mapped_kind" of kind "ts_override": a target of kind "asdf" with the same name already exists. Use the '# aspect:js_project_naming_convention' directive to change the naming convention. | ||
|
||
For example: | ||
# gazelle:js_project_naming_convention {dirname}_js | ||
# gazelle:js_tests_naming_convention {dirname}_js_tests | ||
# aspect:js_project_naming_convention {dirname}_js | ||
# aspect:js_tests_naming_convention {dirname}_js_tests | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Resolution error Import "lib.not" from "lib.kt" is an unknown dependency. Possible solutions: | ||
1. Instruct Gazelle to resolve to a known dependency using a directive: | ||
# gazelle:resolve [src-lang] kotlin import-string label | ||
# aspect:resolve [src-lang] kotlin import-string label | ||
|
||
Resolution error Import "foo" from "main.kt" is an unknown dependency. Possible solutions: | ||
1. Instruct Gazelle to resolve to a known dependency using a directive: | ||
# gazelle:resolve [src-lang] kotlin import-string label | ||
# aspect:resolve [src-lang] kotlin import-string label | ||
|
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