Skip to content

Commit c76eba6

Browse files
committed
Show the command that needs to be run when SwiftSyntax files don't match
This error message will show up if someone modifies the syntax definition files in the main swift repo without modifying the generated SwiftSyntax files accordingly. Tell them what to do in order to fix the problem. rdar://89777232
1 parent 6fa8f5e commit c76eba6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-script.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,9 @@ def main():
730730
printerr(
731731
"FAIL: Gyb-generated files committed to repository do "
732732
"not match generated ones. Please re-generate the "
733-
"gyb-files and recommit them."
733+
"gyb-files using the following command, open a PR to the "
734+
"SwiftSyntax project and merge it alongside the main PR."
735+
"$ swift-syntax/build-script.py --degyb-only --toolchain whatever"
734736
)
735737
sys.exit(1)
736738

0 commit comments

Comments
 (0)