diff --git a/build/Build.cs b/build/Build.cs index 7ac8a600..52ad43f1 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -86,8 +86,8 @@ static string GetOTelAutoInstrumentationFileName() return fileName; } - Target AddSplunkDistribution => _ => _ - .After(UnpackAutoInstrumentationDistribution) + Target AddSplunkPlugins => _ => _ + .After(Compile) .Executes(() => { FileSystemTasks.CopyFileToDirectory( @@ -97,7 +97,7 @@ static string GetOTelAutoInstrumentationFileName() }); Target PackSplunkDistribution => _ => _ - .After(Compile) + .After(AddSplunkPlugins) .Executes(() => { var fileName = GetOTelAutoInstrumentationFileName(); @@ -143,8 +143,8 @@ static string GetOTelAutoInstrumentationFileName() .DependsOn(Restore) .DependsOn(DownloadAutoInstrumentationDistribution) .DependsOn(UnpackAutoInstrumentationDistribution) - .DependsOn(AddSplunkDistribution) .DependsOn(Compile) + .DependsOn(AddSplunkPlugins) .DependsOn(RunUnitTests) .DependsOn(RunIntegrationTests) .DependsOn(PackSplunkDistribution);