Only skip downloading kic if --download-only=false #13910
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #13452
Problem:
If the kic image already exists in Docker we skip downloading the kic image to cache. However, this causes issues if
--download-only
is specified as you can have the kic image loaded in Docker but not in the cache, resulting in thecache
directory not containing the kic and confusing users why their offline usage isn't working.Solution:
Only skip downloading the kic image if
--download-only=false
to prevent the above from happening. Also, the download checks for the existence of the file before downloading, so it will skip the download if the file is already in the cache, so this PR does not result in more unnecessary downloading.