Skip to content

Exit build-script verify-source-code with non-zero exit code if files don’t match #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,14 @@ public extension ExpressibleAsPoundSourceLocationArgs {
return createPoundSourceLocationArgs()
}
}
public protocol ExpressibleAsDeclModifierDetail: ExpressibleAsSyntaxBuildable {
func createDeclModifierDetail() -> DeclModifierDetail
}
public extension ExpressibleAsDeclModifierDetail {
func createSyntaxBuildable() -> SyntaxBuildable {
return createDeclModifierDetail()
}
}
public protocol ExpressibleAsDeclModifier: ExpressibleAsModifierList, ExpressibleAsSyntaxBuildable {
func createDeclModifier() -> DeclModifier
}
Expand All @@ -801,14 +809,6 @@ func createModifierList() -> ModifierList {
return createDeclModifier()
}
}
public protocol ExpressibleAsDeclModifierDetail: ExpressibleAsSyntaxBuildable {
func createDeclModifierDetail() -> DeclModifierDetail
}
public extension ExpressibleAsDeclModifierDetail {
func createSyntaxBuildable() -> SyntaxBuildable {
return createDeclModifierDetail()
}
}
public protocol ExpressibleAsInheritedType: ExpressibleAsInheritedTypeList, ExpressibleAsSyntaxBuildable {
func createInheritedType() -> InheritedType
}
Expand Down Expand Up @@ -2010,4 +2010,4 @@ public extension ExpressibleAsVersionTuple {
func createSyntaxBuildable() -> SyntaxBuildable {
return createVersionTuple()
}
}
}
1 change: 1 addition & 0 deletions build-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ def verify_source_code_command(args):
"SwiftSyntax project and merge it alongside the main PR."
"$ swift-syntax/build-script.py generate-source-code --toolchain /path/to/toolchain.xctoolchain/usr"
)
raise SystemExit(1)


def build_command(args):
Expand Down