Skip to content

Commit 49f7ff8

Browse files
committed
Removes build server output type when running in diag mode.
1 parent eaebe64 commit 49f7ff8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

build/.run/Generate Schemas.run.xml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<option name="PROJECT_TFM" value="net9.0" />
1919
<method v="2">
2020
<option name="Build" />
21+
<option name="RunConfigurationTask" enabled="false" run_configuration_name="Build Prepare" run_configuration_type="DotNetProject" />
2122
</method>
2223
</configuration>
2324
</component>

build/common/Addins/GitVersion/GitVersionOutput.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ public enum GitVersionOutput
1313
/// <summary>
1414
/// Outputs to the stdout in a way usable by a detected build server.
1515
/// </summary>
16-
BuildServer
16+
BuildServer,
17+
File,
18+
DotEnv
1719
}

src/GitVersion.App/GitVersionExecutor.cs

-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ private bool HandleNonMainCommand(GitVersionOptions gitVersionOptions, out int e
123123
if (gitVersionOptions.Diag)
124124
{
125125
gitVersionOptions.Settings.NoCache = true;
126-
gitVersionOptions.Output.Add(OutputType.BuildServer);
127126
}
128127

129128
ConfigureLogging(gitVersionOptions, this.log, this.fileSystem);

0 commit comments

Comments
 (0)