Skip to content

Commit cf9775d

Browse files
fix: customizations directory path not being set correctly when using workspace inputs without project inputs (#99)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 569d10e commit cf9775d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/filesystem/filesystem.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,7 @@ func (fs *FileSystem) startPlanning(t *bolt.Tx, workspaceId, projectId string, d
13041304
}
13051305
}
13061306
if workInp.Type == types.ProjectInputCustomizations {
1307+
currentRunCustDir = filepath.Join(currentRunDir, CUSTOMIZATIONS_DIR)
13071308
inpPathSrc = filepath.Join(workInputsDir, CUSTOMIZATIONS_DIR, workInp.NormalizedName)
13081309
inpPathDst = filepath.Join(currentRunCustDir, workInp.NormalizedName)
13091310
if err := os.MkdirAll(currentRunCustDir, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {
@@ -1764,6 +1765,7 @@ func (fs *FileSystem) startTransformation(t *bolt.Tx, workspaceId, projectId str
17641765
}
17651766
}
17661767
if workInp.Type == types.ProjectInputCustomizations {
1768+
currentRunCustDir = filepath.Join(currentRunDir, CUSTOMIZATIONS_DIR)
17671769
inpPathSrc = filepath.Join(workInputsDir, CUSTOMIZATIONS_DIR, workInp.NormalizedName)
17681770
inpPathDst = filepath.Join(currentRunCustDir, workInp.NormalizedName)
17691771
if err := os.MkdirAll(currentRunCustDir, DEFAULT_DIRECTORY_PERMISSIONS); err != nil {

0 commit comments

Comments
 (0)