[BUG] BuildStrategy: Cannot Use Context Dir as Working Directory #1573
Labels
kind/bug
Categorizes issue or PR as related to a bug.
kind/documentation
Categorizes issue or PR as related to documentation.
Milestone
Is there an existing issue for this?
Kubernetes Version
k8s: 1.28.7
Tekton Pipelines: 0.56.2
Shipwright Version
0.12.0
Current Behavior
When authoring a build strategy, builds risk failure if a build strategy step has its
workingDir
set to a sub-directory and source is cloned from git. Git expects the target directory of any clone action to be empty.Setting
workingDir
to a sub-directory of the source root (ex:contextDir
) results in errors like the following:Expected Behavior
Ideally build steps succeed if the directory is a subPath of the working directory. However, this may prove difficult due to the way Tekton, Kubernetes, and potentially the underlying container runtime operate (everything runs in a single TaskRun/Pod today).
Steps To Reproduce
workingDir
set to a sub-path of$(params.shp-source-root)
Anything else?
This is perhaps something that we document as a known issue - ex: in a guide for Build Strategy authors.
The text was updated successfully, but these errors were encountered: