Skip to content

Commit 17c77cd

Browse files
authored
Print workspace directory only in debug builds (#6137)
1 parent e65767b commit 17c77cd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
* SwiftLint now requires macOS 13 or higher to run.
1212
[JP Simard](https://github.com/jpsim)
13+
14+
* In `SwiftLintBuildToolPlugin`, print the content of the `BUILD_WORKSPACE_DIRECTORY`
15+
environment variable only in debug builds.
16+
[SimplyDanny](https://github.com/SimplyDanny)
17+
[#6135](https://github.com/realm/SwiftLint/issues/6135)
1318

1419
### Experimental
1520

Plugins/SwiftLintBuildToolPlugin/SwiftLintBuildToolPlugin.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ struct SwiftLintBuildToolPlugin: BuildToolPlugin {
5050
return []
5151
}
5252
// Outputs the environment to the build log for reference.
53+
#if DEBUG
5354
print("Environment:", environment)
55+
#endif
5456
let arguments: [String] = [
5557
"lint",
5658
"--quiet",

0 commit comments

Comments
 (0)