mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
fix: the merged task should be internal if the task OR the taskfile are internal
This commit is contained in:
@@ -43,7 +43,7 @@ func Merge(t1, t2 *Taskfile, internal bool, namespaces ...string) error {
|
||||
// have serious side-effects in the future, since we're editing
|
||||
// the original references instead of deep copying them.
|
||||
|
||||
v.Internal = internal
|
||||
v.Internal = v.Internal || internal
|
||||
|
||||
t1.Tasks[taskNameWithNamespace(k, namespaces...)] = v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user