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

wrong OS value in win32 #1691

Closed
trim21 opened this issue Jun 12, 2024 · 1 comment
Closed

wrong OS value in win32 #1691

trim21 opened this issue Jun 12, 2024 · 1 comment

Comments

@trim21
Copy link
Contributor

trim21 commented Jun 12, 2024

  • Task version: Task version: v3.37.2 (h1:Jwgvo+2vX79Fu+44xPxVKC5DIkUE89QeDjN2tmYaQzA=)
  • Operating system: windows 10
  • Experiments enabled: none

by doc ( https://taskfile.dev/usage/#gos-template-engine ), template value OS on win32 is windows, but it's actually Windows_NT.

  test:
    - echo "{{ .OS }}"

and it output Windows_NT

I'm guessing, it's overrided by env var OS, which is `Windows_NT?

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Jun 12, 2024
@trim21
Copy link
Contributor Author

trim21 commented Jun 12, 2024

OK, I should use {{ OS }} instead of {{ .OS }}

@trim21 trim21 closed this as completed Jun 12, 2024
@task-bot task-bot removed the state: needs triage Waiting to be triaged by a maintainer. label Jun 12, 2024
@andreynering andreynering added the type: question Further information is requested. label Jun 12, 2024
@pd93 pd93 removed the type: question Further information is requested. label Dec 15, 2024
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

4 participants