mirror of
https://github.com/go-task/task.git
synced 2025-06-15 00:15:10 +02:00
feat: add support for multiple includes on a graph edge
This commit is contained in:
@ -3,7 +3,6 @@ package errors
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Masterminds/semver/v3"
|
||||
@ -176,22 +175,6 @@ func (err *TaskfileNetworkTimeoutError) Code() int {
|
||||
return CodeTaskfileNetworkTimeout
|
||||
}
|
||||
|
||||
type TaskfileDuplicateIncludeError struct {
|
||||
URI string
|
||||
IncludedURI string
|
||||
Namespaces []string
|
||||
}
|
||||
|
||||
func (err *TaskfileDuplicateIncludeError) Error() string {
|
||||
return fmt.Sprintf(
|
||||
`task: Taskfile %q attempted to include %q multiple times with namespaces: %s`, err.URI, err.IncludedURI, strings.Join(err.Namespaces, ", "),
|
||||
)
|
||||
}
|
||||
|
||||
func (err *TaskfileDuplicateIncludeError) Code() int {
|
||||
return CodeTaskfileDuplicateInclude
|
||||
}
|
||||
|
||||
// TaskfileCycleError is returned when we detect that a Taskfile includes a
|
||||
// set of Taskfiles that include each other in a cycle.
|
||||
type TaskfileCycleError struct {
|
||||
|
Reference in New Issue
Block a user