Skip to main content
Version: 1.0.x

Initial setup

rules_apko requires a one-time setup to configure bazel to be able to make partial fetches.

See the issue:

Paste this into your root BUILD file

load("@rules_apko//apko:defs.bzl", "apko_bazelrc")


NOTE: by default apko_bazelrc will generate .bazelrc to accomodate for fetching from and this can be configured by passing the repositories attribute to apko_bazelrc() call.

Then run

bazel run @@//:apko_bazelrc && chmod +x .apko/

And finally paste this into your preferred `.bazelrc` file,

# Required for rules_apko to make range requests
try-import %workspace%/.apko/.bazelrc