Skip to content

Commit 02b8532

Browse files
committed
update paths for nupkg-validator
1 parent aadc22b commit 02b8532

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build/scripts/Targets.fs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ let private restoreTools = lazy(exec "dotnet" ["tool"; "restore"])
3737
let private currentVersion =
3838
lazy(
3939
restoreTools.Value |> ignore
40-
let r = Proc.Start("dotnet", "minver", "--default-pre-release-phase", "canary", "-m", "0.1")
41-
let o = r.ConsoleOut |> Seq.find (fun l -> not(l.Line.StartsWith("MinVer:")))
40+
let r = Proc.Start("dotnet", "minver", "-p", "canary.0", "-m", "0.1")
41+
let o = r.ConsoleOut |> Seq.find (fun l -> not(l.Line.StartsWith "MinVer:"))
4242
o.Line
4343
)
4444
let private currentVersionInformational =
@@ -94,11 +94,16 @@ let private generateApiChanges (arguments:ParseResults<Arguments>) =
9494
let outputFile =
9595
let f = sprintf "breaking-changes-%s.md" p
9696
Path.Combine(output, f)
97+
let directory =
98+
match p with
99+
| "Elastic.VirtualizedCluster" -> $".artifacts/bin/%s{p}/bin/release"
100+
| _ -> $".artifacts/bin/%s{p}/bin/release_%s{Paths.MainTFM}"
101+
97102
let args =
98103
[
99104
"assembly-differ"
100105
(sprintf "previous-nuget|%s|%s|%s" p currentVersion Paths.MainTFM);
101-
(sprintf "directory|src/%s/bin/Release/%s" p Paths.MainTFM);
106+
(sprintf "directory|%s" directory);
102107
"-a"; "true"; "--target"; p; "-f"; "github-comment"; "--output"; outputFile
103108
]
104109

0 commit comments

Comments
 (0)