roll: recipes_version.txt bazel_roll: Move MODULE.bazel.lock code to method

Move duplicated code for handling MODULE.bazel.lock files to a method.
Also, only run it if there is a MODULE.bazel.lock file.

Original-Bug: b/393158553
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/infra/recipes/+/263572
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Original-Revision: fdb2286fce67d37678374f3158b920a02c02cce9
GitOrigin-RevId: e7acf447f6c7853e627520c4a5bc54ad51f00037
Change-Id: I6a21621ee27b13288c4af4b03cf3be26a1bf2240
1 file changed
tree: 9b05263c3d250136ca211a506a0d045c91e05831
  1. generated/
  2. AUTHORS
  3. LICENSE
  4. README.md
  5. recipes_version.txt
README.md

Pigweed Config

This repository contains configs for Pigweed. The source of truth for these configs is the corresponding internal repository.