Skip to content

Commit 80b0a28

Browse files
authored
tests: Final SDK generator output should be printed to standard output (#180)
All SDK generator log messages are now printed as structured logs via a logger instance. This includes the final message which tells the user how to install and use the SDK. All logger messages are printed to standard error by default. This PR changes the final installation message back to an ordinary print, which will go to standard output. This means that the user will still see this message even if standard error is redirected. It also fixes the end to end tests, which were failing because they look for the bundle path from the generator's standard output.
1 parent d4aba13 commit 80b0a28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Entrypoint.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ public extension SwiftSDKGenerator {
6161
try await generateArtifactBundleManifest(hostTriples: swiftSDKProduct.hostTriples)
6262

6363
// Extra spaces added for readability for the user
64-
logger.info(
64+
print(
6565
"""
6666
67-
6867
All done! Install the newly generated SDK with this command:
6968
swift experimental-sdk install \(pathsConfiguration.artifactBundlePath)
7069

0 commit comments

Comments
 (0)