GoogleContainerTools / GoogleContainerTools/skaffold

Skaffold image filter with -build-image does not work properly with requires.

Open
#7,053 6 comments 0 reactions 0 assignees View on GitHub
area/artifact-dependencies kind/bug priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**Expected behavior**
`skaffold build -p test -b IMAGE2` should build IMAGE2 along with IMAGE1 as dependency

**Actual behavior**

Here is a sample skaffold in which, I only want to build IMAGE2, thus I use
`skaffold build -p test -b IMAGE2` but since image2 is dependent on image 1 this filter stops build 2 as well since it cannot find build 1 throwing an error

`FATA[0034] failed to resolve build result for required artifact "IMAGE1" subtask=-1 task=DevLoop`

**Information**

- Skaffold version: v1.35.6
- Operating system: MacOS
Contents of ~/.skaffold/config:

```
apiVersion: skaffold/v2beta26
kind: Config
profiles:
- name: test
build:
tagPolicy:
envTemplate:
template: latest
artifacts:
- image: IMAGE1
custom:
buildCommand: echo "Bulding image 1"
- image: IMAGE2
custom:
buildCommand: echo "Building image 2"
requires:
- image: IMAGE1
- image: IMAGE3
custom:
buildCommand: echo "Building image 3"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.