Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desc doesnt seem to support templatization #276

Closed
mxrss opened this issue Dec 12, 2019 · 1 comment
Closed

desc doesnt seem to support templatization #276

mxrss opened this issue Dec 12, 2019 · 1 comment

Comments

@mxrss
Copy link

mxrss commented Dec 12, 2019

If relevant, include the following information:

  • Task version: Task version: 2.8.0
  • OS: darwin
  • Example Taskfile showing the issue

version: '2'

vars:
  Repo: blah
  Tag: confd
  Version: v0.16.0
  FullName: "{{ .Repo }}/{{ .Tag }}:{{ .Version }}"

tasks:
  container:build:
    desc: |
     This will build "{{ OS }}"
    cmds:
      - docker build . -t "{{ .FullName }}"
    silent: true

Variable interpolation works well, but it seems that desc does not support auto generating content. I am looking for this to try to make my tasks a little more generic..

{{ OS }} or other golang templates should be executed for desc (Description).

@andreynering andreynering added the type: bug Something not working as intended. label Dec 16, 2019
@andreynering
Copy link
Member

Hi @mxrss,

Indeed this is a bug. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants