Skip to content

Commit f821f92

Browse files
committed
ci: point the --locked-mode drift guard at the new Microsoft.OpenApi pin
#576's group bump moved Microsoft.OpenApi 2.12.0 -> 2.12.2, so the drift guard's hard-coded sed source (2.12.0) no longer matched and the guard failed with 'drift-guard perturbation target not found'. Update the perturbation to 2.12.2 -> 2.12.1 and the grep target to 2.12.1. Verified locally: the perturbation lands and the --locked-mode restore fails with NU1004 (stale lock), which is exactly what the guard asserts.
1 parent abb2f03 commit f821f92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ jobs:
288288
work="$(mktemp -d)"
289289
git archive HEAD | tar -x -C "$work"
290290
cd "$work"
291-
sed -i 's#<PackageReference Include="Microsoft.OpenApi" Version="2.12.0" #<PackageReference Include="Microsoft.OpenApi" Version="2.11.0" #' \
291+
sed -i 's#<PackageReference Include="Microsoft.OpenApi" Version="2.12.2" #<PackageReference Include="Microsoft.OpenApi" Version="2.12.1" #' \
292292
src/Cluckwork.Api/Cluckwork.Api.csproj
293293
# Fail loudly (don't silently pass) if the pin used as the perturbation
294294
# target has since moved — the guard must be kept pointing at a real pin.
295-
grep -q '<PackageReference Include="Microsoft.OpenApi" Version="2.11.0" ' \
295+
grep -q '<PackageReference Include="Microsoft.OpenApi" Version="2.12.1" ' \
296296
src/Cluckwork.Api/Cluckwork.Api.csproj \
297297
|| { echo "::error::drift-guard perturbation target not found; update the Microsoft.OpenApi version it edits"; exit 1; }
298298
if docker build --target build -f src/Cluckwork.Api/Dockerfile -t cluckwork-lockdrift:ci . ; then

0 commit comments

Comments
 (0)