We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5427057 commit a6e8b98Copy full SHA for a6e8b98
tools/StaticAnalysis/BreakingChangeAnalyzer/BreakingChangeAnalyzer.cs
@@ -130,6 +130,19 @@ public void Analyze(
130
}
131
132
var psd1 = manifestFiles.FirstOrDefault();
133
+
134
+ // Skip the modules whoes version is less than 1.0.0
135
+ using (var ps = PowerShell.Create())
136
+ {
137
+ ps.AddCommand("Test-ModuleManifest").AddParameter("Path", psd1);
138
+ var result = ps.Invoke();
139
+ PSModuleInfo moduleInfo = result[0].BaseObject as PSModuleInfo;
140
+ if (moduleInfo.Version.Major < 1)
141
142
+ return;
143
+ }
144
145
146
var parentDirectory = Directory.GetParent(psd1).FullName;
147
var psd1FileName = Path.GetFileName(psd1);
148
0 commit comments