I'm trying to do this for my custom serverless worker bc my personal pc has some docker issues that i havent figured out over multiple days of debugging (i think wsl got corrupted somehow but that's a different issue). But every time i try to run
bazel run //:push_custom_image
bazel run //:push_custom_image
, it shows the following error:
WARNING: Target pattern parsing failed.ERROR: Skipping '//:push_custom_image': error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@rules_oci' from main repository.ERROR: error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@rules_oci' from main repository.INFO: Elapsed time: 0.065sINFO: 0 processes.ERROR: Build did NOT complete successfullyERROR: Build failed. Not running target
WARNING: Target pattern parsing failed.ERROR: Skipping '//:push_custom_image': error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@rules_oci' from main repository.ERROR: error loading package '': Unable to find package for @@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]//oci:defs.bzl: The repository '@@[unknown repo 'rules_oci' requested from @@ (did you mean 'rules_cc'?)]' could not be resolved: No repository visible as '@rules_oci' from main repository.INFO: Elapsed time: 0.065sINFO: 0 processes.ERROR: Build did NOT complete successfullyERROR: Build failed. Not running target
What's the proper set up for a WORKSPACE and BUILD.bazel files to get this properly going?