-
-
Notifications
You must be signed in to change notification settings - Fork 763
Labels
area: templatingChanges related to the templating engine.Changes related to the templating engine.
Description
- Task version: v3.25.0 (h1:XtIEtWpQSbIf2FGU+44/QB1whFf2sBUB/02W7ZQSz0U=)
- Operating system: Windows 10
- Experiments enabled: false
How to reproduce it?
When I don't include dotenv key in config file, all things work well:
version: '3'
vars:
ROOT:
sh: echo {{toSlash .ROOT_DIR}}
DOCKER:
sh: echo {{.ROOT}}/docker
tasks:
foo:
cmds:
- echo {{.DOCKER}}# in my directory: D:/Reops/test
$ task foo
task: [foo] echo D:/Repos/test/docker
D:/Repos/test/dockerBut when I add dotenv keys in config file with an empty .env file(created but no content):
version: '3'
dotenv:
- .env
vars:
ROOT:
sh: echo {{toSlash .ROOT_DIR}}
DOCKER:
sh: echo {{.ROOT}}/docker
tasks:
foo:
cmds:
- echo {{.DOCKER}}then run task again and the console will show:
$ task foo
template: :1:15: executing "" at <.ROOT_DIR>: invalid value; expected string
dennybaa, MuriloGhignatti, Neonox31 and lukasphase
Metadata
Metadata
Assignees
Labels
area: templatingChanges related to the templating engine.Changes related to the templating engine.