1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-26 22:40:38 +02:00
Files
ko-build/docs/features/build-cache.md
Jason Hall e1b4eade08 Move docs to ko.build (#749)
* Move docs to ko.build

* rm ko_deps.md

* remove trailing whitespace

* add go-import meta tag

* update mkdocs.yml

* update mkdocs.yml

* remove duplicate main.html

* update go.sum
2022-09-30 15:04:37 -04:00

10 lines
642 B
Markdown

# Build Cache
Because `ko` just runs `go build` in your normal development environment, it automatically reuses your [`go build` cache](https://pkg.go.dev/cmd/go#hdr-Build_and_test_caching) from previous builds, making iterative development faster.
`ko` also avoids pushing blobs to the remote image registry if they're already present, making pushes faster.
You can make `ko` even faster by setting the `KOCACHE` environment variable.
This tells `ko` to store a local mapping between the `go build` inputs to the image layer that they produce, so `go build` can be skipped entirely if the layer is already present in the image registry.