Skip to content

Commit db6080d

Browse files
authored
fix(pipeline): always set local to true for validate local (#534)
1 parent 45bc445 commit db6080d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

command/pipeline/validate.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ func validate(c *cli.Context) error {
203203

204204
// set when user is sourcing templates from local machine
205205
if len(p.TemplateFiles) != 0 {
206-
client.WithLocal(true)
207206
client.WithLocalTemplates(p.TemplateFiles)
208207
client.TemplateDepth = c.Int("max-template-depth")
209208
} else {
@@ -216,5 +215,5 @@ func validate(c *cli.Context) error {
216215
// execute the validate local call for the pipeline configuration
217216
//
218217
// https://pkg.go.dev/github.com/go-vela/cli/action/pipeline?tab=doc#Config.ValidateLocal
219-
return p.ValidateLocal(client.WithPrivateGitHub(c.String(internal.FlagCompilerGitHubURL), c.String(internal.FlagCompilerGitHubToken)))
218+
return p.ValidateLocal(client.WithLocal(true).WithPrivateGitHub(c.String(internal.FlagCompilerGitHubURL), c.String(internal.FlagCompilerGitHubToken)))
220219
}

0 commit comments

Comments
 (0)