Skip to content

Task v3.44.0 breaks randInt behavior #2312

@aohoyd

Description

@aohoyd

Description

https://go-task.github.io/slim-sprig/math.html already has randInt template function, which takes two arguments. But #2225 introduces another one randInt which breaks compatibility. Is it really necessary to break backward compatibility here?

Version

3.44.0

Operating system

Experiments Enabled

No response

Example Taskfile

version: '3'

tasks:
  default:
    cmds:
      - |
         echo RandInt: {{randInt 0 100}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions