Skip to content

Fix lockfile containing bad feed url and add check to make sure never merged by mistake that way - #11321

Merged
timotheeguerin merged 2 commits into
mainfrom
check-lockfile-no-tarball
Jul 21, 2026
Merged

Fix lockfile containing bad feed url and add check to make sure never merged by mistake that way#11321
timotheeguerin merged 2 commits into
mainfrom
check-lockfile-no-tarball

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

Summary

  • Reverted pnpm-lock.yaml to remove registry-proxy-injected tarball: URLs (load-balanced ms-feed-N.pkgs.visualstudio.com hosts) that are environment-specific and break CI. The lockfile is now integrity-only again.
  • Added a check-lockfile script (eng/common/scripts/check-lockfile.ts) that fails if any tarball: URL is present in pnpm-lock.yaml.
  • Wired it into the version-consistency job in consistency.yml.

Why not a pnpm setting?

pnpm's lockfile-include-tarball-url=false is already the default and is known to be flaky when the registry host differs from the tarball host, so it does not reliably prevent this. A lightweight CI guard is the robust option.

Validation

  • pnpm run check-lockfile passes on the cleaned lockfile.
  • Verified it exits non-zero when a tarball: URL is injected.
  • tsc -p ./tsconfig.eng.json --noEmit passes.

@timotheeguerin timotheeguerin changed the title Add check to ensure pnpm-lock.yaml stays tarball-URL free Fix lockfile containing bad feed url and add check to make sure never merged by mistake that way Jul 21, 2026
@timotheeguerin
timotheeguerin marked this pull request as ready for review July 21, 2026 01:00
@timotheeguerin
timotheeguerin enabled auto-merge July 21, 2026 01:00
@github-actions

Copy link
Copy Markdown
Contributor

No changes needing a change description found.

@azure-sdk-automation

azure-sdk-automation Bot commented Jul 21, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin
timotheeguerin disabled auto-merge July 21, 2026 12:22
@timotheeguerin
timotheeguerin merged commit ceac062 into main Jul 21, 2026
52 of 66 checks passed
@timotheeguerin
timotheeguerin deleted the check-lockfile-no-tarball branch July 21, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant