Skip to content

fix(ng-dev/release): improve lockfile exclusion logic in snapshot publishing#3568

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:snapshot-publish-changed-only
Mar 24, 2026
Merged

fix(ng-dev/release): improve lockfile exclusion logic in snapshot publishing#3568
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:snapshot-publish-changed-only

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Mar 24, 2026

Update the snapshot publishing logic to more robustly exclude lockfiles from determining if a snapshot is affected by changes.

Specifically:

  • Added pnpm-lock.yaml to the list of excluded paths.
  • Added both root-level and glob variants for MODULE.bazel.lock, pnpm-lock.yaml, and pubspec.lock.

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 24, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request aims to improve the lockfile exclusion logic for snapshot publishing by adding support for pnpm-lock.yaml and making the pathspecs more robust.

My review identified two main issues:

  1. The removal of package-lock.json from the exclusion list, which could be a regression for npm-based projects. I've suggested adding it back, along with yarn.lock, for broader package manager support.
  2. A critical issue where pathspecs are wrapped in single quotes. Because the git command is executed without a shell, these quotes will be passed literally, causing the exclusion logic to fail. I've provided a suggestion to remove them.

Addressing these points will ensure the snapshot publishing logic is both more robust and correct across different project setups.

…lishing

Update the snapshot publishing logic to more robustly exclude lockfiles from
determining if a snapshot is affected by changes.

Specifically:
- Added pnpm-lock.yaml to the list of excluded paths.
- Added both root-level and glob variants for MODULE.bazel.lock, pnpm-lock.yaml, and pubspec.lock.
@alan-agius4 alan-agius4 force-pushed the snapshot-publish-changed-only branch from 48beea0 to cb6af3a Compare March 24, 2026 11:01
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alan-agius4 alan-agius4 merged commit b9bca45 into angular:main Mar 24, 2026
13 checks passed
@alan-agius4
Copy link
Contributor Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the snapshot-publish-changed-only branch March 24, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants