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

defalt and join not available in ref variables #1645

Closed
simonrouse9461 opened this issue May 9, 2024 · 0 comments · Fixed by #1654
Closed

defalt and join not available in ref variables #1645

simonrouse9461 opened this issue May 9, 2024 · 0 comments · Fixed by #1654
Labels
area: templating Changes related to the templating engine. area: variables Changes related to variables. type: enhancement A change to an existing feature or functionality.

Comments

@simonrouse9461
Copy link

This works fine:

FRAMEWORK_DEP_FILES: '{{.FRAMEWORK_DEP_FILE_LIST | join ","}}'

but this raises an error:

FRAMEWORK_DEP_FILES:
    ref: .FRAMEWORK_DEP_FILE_LIST | join ","
template: resolver:1: function "join" not defined

Similar thing happens to default function. I haven't checked other functions, but I suspect things from slim-sprig are not imported correctly.

  • Task version: 3.37.0
  • Operating system: MacOS 14
  • Experiments enabled: TASK_X_MAP_VARIABLES=2
@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label May 9, 2024
@pd93 pd93 added type: feature A new feature or functionality. area: variables Changes related to variables. type: enhancement A change to an existing feature or functionality. area: templating Changes related to the templating engine. and removed type: feature A new feature or functionality. state: needs triage Waiting to be triaged by a maintainer. labels May 10, 2024
@pd93 pd93 linked a pull request May 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: templating Changes related to the templating engine. area: variables Changes related to variables. type: enhancement A change to an existing feature or functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants