Skip to content

Commit

Permalink
Fix cli lint throwing error on warnings (#2995)
Browse files Browse the repository at this point in the history
split out from  #2771

---------

Co-authored-by: Anbraten <anton@ju60.de>
  • Loading branch information
6543 and anbraten authored Dec 22, 2023
1 parent f6ca346 commit cd9d425
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ func lintFile(_ *cli.Context, file string) error {
// TODO: lint multiple files at once to allow checks for sth like "depends_on" to work
err = linter.New(linter.WithTrusted(true)).Lint([]*linter.WorkflowConfig{config})
if err != nil {
fmt.Printf("🔥 %s has errors:\n", output.String(config.File).Underline())
fmt.Printf("🔥 %s has warning / errors:\n", output.String(config.File).Underline())

hasErrors := true
hasErrors := false
for _, err := range pipeline_errors.GetPipelineErrors(err) {
line := " "

Expand Down
4 changes: 2 additions & 2 deletions pipeline/backend/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,10 @@ func (e *docker) DestroyWorkflow(_ context.Context, conf *backend.Config, taskUU
for _, step := range stage.Steps {
containerName := toContainerName(step)
if err := e.client.ContainerKill(noContext, containerName, "9"); err != nil && !isErrContainerNotFoundOrNotRunning(err) {
log.Error().Err(err).Msgf("could not kill container '%s'", stage.Name)
log.Error().Err(err).Msgf("could not kill container '%s'", step.Name)
}
if err := e.client.ContainerRemove(noContext, containerName, removeOpts); err != nil && !isErrContainerNotFoundOrNotRunning(err) {
log.Error().Err(err).Msgf("could not remove container '%s'", stage.Name)
log.Error().Err(err).Msgf("could not remove container '%s'", step.Name)
}
}
}
Expand Down

0 comments on commit cd9d425

Please sign in to comment.