Skip to content

Commit 6b57f6f

Browse files
authored
Merge pull request #551 from SteveL-MSFT/update-preview11
Update crates and dsc version
2 parents 623b1fb + 3912bb5 commit 6b57f6f

File tree

18 files changed

+1160
-953
lines changed

18 files changed

+1160
-953
lines changed

build.ps1

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ param(
1313
[switch]$GetPackageVersion,
1414
[switch]$SkipLinkCheck,
1515
[switch]$UseX64MakeAppx,
16-
[switch]$UseCratesIO
16+
[switch]$UseCratesIO,
17+
[switch]$UpdateLockFile
1718
)
1819

1920
if ($GetPackageVersion) {
@@ -240,7 +241,12 @@ if (!$SkipBuild) {
240241
Push-Location "$PSScriptRoot/$project" -ErrorAction Stop
241242

242243
if ($project -eq 'tree-sitter-dscexpression') {
243-
./build.ps1
244+
if ($UpdateLockFile) {
245+
cargo generate-lockfile
246+
}
247+
else {
248+
./build.ps1
249+
}
244250
}
245251

246252
if (Test-Path "./Cargo.toml")
@@ -259,7 +265,12 @@ if (!$SkipBuild) {
259265
}
260266
}
261267
else {
262-
cargo build @flags
268+
if ($UpdateLockFile) {
269+
cargo generate-lockfile
270+
}
271+
else {
272+
cargo build @flags
273+
}
263274
}
264275
}
265276

0 commit comments

Comments
 (0)