late-energy-66663
08/15/2021, 5:35 PMunable to find the stack
.
Just would like to confirm if we are using the right function to select the existing stack .Below is the the code , workDir is the absolute path there the project directory is created . We have tried giving different ways with no luck
workDir := "./projects" fmt.Println("workDir",workDir)
s, err := auto.SelectStackInlineSource(ctx, projvls.Stackname, projvls.Projectname , program, auto.PulumiHome(workDir), envvars) if err != nil {
we have also tried to use following function as well but unable to locate the stack
// WorkDir is the directory to execute commands from and store state.
func WorkDir(workDir string) LocalWorkspaceOption {
return localWorkspaceOption(func(lo *localWorkspaceOptions) {
lo.WorkDir = workDir
})
}
bored-oyster-3147
08/15/2021, 10:22 PMcreamy-holiday-75376
08/16/2021, 8:58 AMbored-oyster-3147
08/16/2021, 11:55 AM