You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Re-enable leak detection parameters.
* Use our copy of SourceLink to build.
* Remove signatures from poisoned packages.
* Port updates from release/2.1 branch.
* Remove reference to obsolete task project.
* Exclude some more files we don't care about.
* Address code review comment.
Copy file name to clipboardExpand all lines: tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/CheckForPoison.cs
+19-6Lines changed: 19 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,12 @@ public class CheckForPoison : Task
51
51
/// </summary>
52
52
publicboolFailOnPoisonFound{get;set;}
53
53
54
+
/// <summary>
55
+
/// Use this directory instead of the system temp directory for staging.
56
+
/// Intended for Linux systems with limited /tmp space, like Azure VMs.
57
+
/// </summary>
58
+
publicstringOverrideTempPath{get;set;}
59
+
54
60
privatestaticreadonlystring[]ZipFileExtensions=
55
61
{
56
62
".zip",
@@ -78,6 +84,7 @@ public class CheckForPoison : Task
78
84
".gitkeep",
79
85
".rels",
80
86
"LICENSE",
87
+
"prefercliruntime",
81
88
"RunCsc",
82
89
"RunVbc",
83
90
};
@@ -103,6 +110,7 @@ public class CheckForPoison : Task
103
110
".png",
104
111
".props",
105
112
".psmdcp",
113
+
".rtf",
106
114
".scss",
107
115
".svg",
108
116
".targets",
@@ -140,7 +148,7 @@ public override bool Execute()
140
148
}
141
149
else
142
150
{
143
-
//Log.LogError($"No leaked files found in output. Either something is broken or it is the future and we have fixed all leaks - please verify and remove this error if so (and default {nameof(FailOnPoisonFound)} to true).");
151
+
Log.LogError($"No leaked files found in output. Either something is broken or it is the future and we have fixed all leaks - please verify and remove this error if so (and default {nameof(FailOnPoisonFound)} to true).");
144
152
returnfalse;
145
153
}
146
154
@@ -154,15 +162,19 @@ public override bool Execute()
154
162
/// <param name="catalogedPackagesFilePath">File path to the file hash catalog</param>
155
163
/// <param name="markerFileName">Marker file name to check for in poisoned nupkgs</param>
156
164
/// <returns>List of poisoned packages and files found and reasons for each</returns>
Copy file name to clipboardExpand all lines: tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection.csproj
0 commit comments