1
0
mirror of https://github.com/go-task/task.git synced 2025-02-13 13:59:32 +02:00

fix: the merged task should be internal if the task OR the taskfile are internal

This commit is contained in:
Pete Davison 2022-07-24 15:28:00 +00:00
parent d3da086ebf
commit e3b6c97c3b

View File

@ -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