skaffold
skaffold copied to clipboard
Bazel root not detected properly when using bzlmod
Expected behavior
Skaffold should recognize the bazel root correctly for projects without a WORKSPACE file (when using bzlmod).
Actual behavior
Skaffold only recognizes WORKSPACE or WORKSPACE.bazel as the bazel root. With bzlmod a workspace file is no longer required while a MODULE or MODULE.bazel file is.
Information
- Skaffold version: v2.10.0
- Operating system: macOs 14.2.1
- Installed via: Homebrew
- Contents of skaffold.yaml:
apiVersion: skaffold/v3
kind: Config
build:
artifacts:
- image: test
bazel:
target: //test-image.tar
Steps to reproduce the behavior
- a clonable repository with the sample skaffold project
- Setup bazel with bzlmod (only a
BUILDandMODULEfile) -
skaffold build - fail!