brief-restaurant-63679
10/26/2023, 1:12 PMsource.path
field correctly when using the getFiles
handler on the VCS class.
It looks like its just ignoring it which means it thinks a give action doesn't have any files.
For example, consider the following config:
# In api/garden.yml
kind: Build
name: api
type: container
source:
path: ../ # <-- Set the source to the parent dir
include: [api/**/*]
---
kind: Deploy
name: api
source:
path: ../ # <-- Set the source to the parent dir
spec:
files: [./manifests]
In this case the build context for the build action will be empty and the build fails with the error that a Dockerfile wasn't found.
The Deploy appears to work because at deploy time we read the files from the correct path and Garden applies the manifests. However—and this is important!—because the files are still empty the action version is incorrectly calculated. So if you e.g. update the manifests, the version will not change.
First off, am I doing something wrong here?
If not, this needs to be addresses ASAP.
cc @curved-intern-91221 @swift-garage-61180 , because this is pretty deep in the engine.config.internal.basePath
and I'm not entirely sure if that's should be the actual config file path or the "corrected" one with respect to the source.path
field.swift-garage-61180
10/26/2023, 1:49 PMcurved-intern-91221
10/27/2023, 8:25 AM