Skip to content

Conversation

@alan-agius4
Copy link
Contributor

In certain scenarios, running bazel run @npm2//:sync does not reliably update the aspect lock files. For example:

# Update the version in package.json
$ yarn bazel run @npm2//:sync  # Lock file is updated
$ git restore .aspect
$ yarn bazel run @npm2//:sync  # Lock file is NOT updated

Switching to bazel sync --only=repo guarantees that the lock file is consistently updated.

More context: https://angular-team.slack.com/archives/C042EU9T5/p1739398554132249

@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Feb 13, 2025
…=repo`

In certain scenarios, running `bazel run @npm2//:sync` does not reliably update the aspect lock files. For example:

```
# Update the version in package.json
$ yarn bazel run @npm2//:sync  # Lock file is updated
$ git restore .aspect
$ yarn bazel run @npm2//:sync  # Lock file is NOT updated
```

Switching to `bazel sync --only=repo` guarantees that the lock file is consistently updated.

More context: https://angular-team.slack.com/archives/C042EU9T5/p1739398554132249
// alway exits with a non-zero exit code.
Log.debug(e);
Log.error(e);
Log.error(' ✘ An error occurred while updating Aspect lock files.');
Copy link
Member

Choose a reason for hiding this comment

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

are we sure it exits gracefully?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I tried a couple of times and it always exited with a zero error code.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 13, 2025
@devversion devversion merged commit b7317b1 into angular:main Feb 13, 2025
10 checks passed
@alan-agius4 alan-agius4 deleted the bazel-sync branch February 13, 2025 10:54
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Feb 13, 2025
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Feb 13, 2025
alan-agius4 added a commit to angular/angular-cli that referenced this pull request Feb 13, 2025
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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