kaniko/pkg
Gilbert Gilb's a42adb9bb4
Fix composite cache key for multi-stage copy command (#1735)
* chore: add workflows for pr tests

* fix unit tests

* fix formatting

* chore: fix gobuild

* change minikube script

* chore: fix lint install script

* chore: ignore and fix tests

* fix lint and run gofmt

* lint fixes

* k8s executor image only

* fix Makefile

* fix travis env variables

* more info on k8s tests

* fix travis run

* fix

* fix

* fix

* fix log

* some more changes

* increase timeout

* delete travis.yml and fix multiple copy tests

* fix registry mirror

* fix lint

* add concurency

* last attemot to fix k8 integrations

* diff id for diff workflows

* Fix composite cache key for multi-stage copy command (#1706)

PR #1518 reintroduced COPY layers caching using the `--cache-copy-layers`
flag. Unfortunately, this PR also introduced a bug by not including the
stage digest into the caching key of the COPY command when the
`--cache-copy-layers` flag was not set. As a result, kaniko would use
any previous (possibly stalled) layer from the cache because the digest
of the "COPY --from" command would never change.

PR author probably expected Go to fallthrough in the switch just like C
does. However, this is not the case. Go does not fallthrough in
switch-statements by default and requires the fallthrough keyword to be
used. Note that this keyword is not available in type-switches though,
because it wouldn't work properly with typings.

* refactor: add an abstract copy command interface to avoid code duplication

* fix typo in error message

Co-authored-by: Tejal Desai <tejal29@gmail.com>
2021-10-18 23:31:01 -07:00
..
buildcontext Fetch a github pull request (#1543) 2021-01-22 11:43:39 -08:00
cache Try to warm all images and warn about errors (#1653) 2021-06-04 10:07:57 -07:00
commands Fix composite cache key for multi-stage copy command (#1735) 2021-10-18 23:31:01 -07:00
config chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
constants Revert "save snaphots to tmp dir (#1662)" (#1670) 2021-06-14 12:09:07 -07:00
creds Update ggcr to pick up estargz and caching option (#1527) 2020-12-21 10:09:21 -08:00
dockerfile Merge pull request #1260 from ljakimczuk/master 2020-06-04 13:24:34 -07:00
executor Fix composite cache key for multi-stage copy command (#1735) 2021-10-18 23:31:01 -07:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem Fix snapshotter ignore list; do not attempt to delete whiteouts of ignored paths (#1652) 2021-06-04 10:07:24 -07:00
image Support mirror registries with path component (#1707) 2021-08-10 22:06:51 -07:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
timing Add a lot more timing data. (#518) 2019-01-10 13:27:55 -07:00
util chore: add workflows for pr tests (#1766) 2021-10-18 23:22:44 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00