mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-22 16:00:05 -05:00
tidy: document MODULE.bazel.lock maintencance
This commit is contained in:
parent
162e73de72
commit
b86faadfcc
4
.github/workflows/test-tidy.yml
vendored
4
.github/workflows/test-tidy.yml
vendored
@ -51,7 +51,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Bazel tidy
|
- name: Run Bazel tidy
|
||||||
shell: bash
|
shell: bash
|
||||||
run: bazel run //:tidy
|
run: |
|
||||||
|
bazel run //:tidy
|
||||||
|
bazel mod deps --lockfile_mode=update
|
||||||
|
|
||||||
- name: Check if untidy
|
- name: Check if untidy
|
||||||
id: untidy
|
id: untidy
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
Bazel is the primary build system for this project. It is used to build all Go code and will be used to build all artifacts in the future.
|
Bazel is the primary build system for this project. It is used to build all Go code and will be used to build all artifacts in the future.
|
||||||
Still, we aim to keep the codebase compatible with `go build` and `go test` as well.
|
Still, we aim to keep the codebase compatible with `go build` and `go test` as well.
|
||||||
Whenever Go code is changed, you will have to run `bazel run //:tidy` to regenerate the Bazel build files for Go code.
|
Whenever Go code is changed, you will have to run `bazel run //:tidy` to regenerate the Bazel build files for Go code.
|
||||||
|
Additionally, you need to update `MODULE.bazel`, together with `MODULE.bazel.lock`:
|
||||||
|
|
||||||
|
```
|
||||||
|
# if the steps below fail, try to recreate the lockfile from scratch by deleting it
|
||||||
|
bazel mod deps --lockfile_mode=update
|
||||||
|
bazel mod tidy
|
||||||
|
```
|
||||||
|
|
||||||
## Bazel commands
|
## Bazel commands
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user