mirror of
https://github.com/go-task/task.git
synced 2025-11-29 22:48:03 +02:00
fix: special variable type errors in vars with no task context (#2107)
* fix: stop dotenv trying to fetch variables when no dotenv specified * fix: set special variables to "" when they can't be calculated
This commit is contained in:
@@ -12,10 +12,6 @@ import (
|
||||
)
|
||||
|
||||
func Dotenv(vars *ast.Vars, tf *ast.Taskfile, dir string) (*ast.Vars, error) {
|
||||
if len(tf.Dotenv) == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
env := ast.NewVars()
|
||||
cache := &templater.Cache{Vars: vars}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user