Skip to content

Commit 7565eac

Browse files
authored
Get .crate file from target/package/tmp-crate (#4525)
Fixes #4524
1 parent 7bd8f50 commit 7565eac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

eng/scripts/Pack-Crates.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ try {
147147

148148
foreach ($package in $packages) {
149149
$sourcePath = [System.IO.Path]::Combine($RepoRoot, "target", "package", "$($package.name)-$($package.version)")
150+
$cratePath = [System.IO.Path]::Combine($RepoRoot, "target", "package", "tmp-crate", "$($package.name)-$($package.version).crate")
150151
$targetPath = [System.IO.Path]::Combine($OutputPath, $package.name)
151152
$targetContentsPath = [System.IO.Path]::Combine($targetPath, "contents")
152153
$targetApiReviewFile = [System.IO.Path]::Combine($targetPath, "$($package.name).rust.json")
@@ -160,7 +161,7 @@ try {
160161
Copy-Item -Path $sourcePath/* -Destination $targetContentsPath -Recurse
161162

162163
Write-Host "Copying .crate file for '$($package.name)' to '$targetPath'"
163-
Copy-Item -Path "$sourcePath.crate" -Destination $targetPath -Force
164+
Copy-Item -Path $cratePath -Destination $targetPath -Force
164165

165166
Write-Host "Creating API review file"
166167
$apiReviewFile = Create-ApiViewFile $package

0 commit comments

Comments
 (0)