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

Make Taskfile.dist.yml Windows-compatible #3219

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

carschandler
Copy link
Contributor

PowerShell doesn't set $env:PWD automatically, but it can be easily retrieved by making PWD a sh variable in the Taskfile, which remains POSIX-compliant for other platforms.

If you don't want to modify the Taskfile, then at least a note about this should be made on https://mamba.readthedocs.io/en/latest/developer_zone/dev_environment.html#

PowerShell doesn't set `$env:PWD` automatically, but it can be easily retrieved by making `PWD` a `sh` variable in the Taskfile, which remains POSIX-compliant for other platforms.

If you don't want to modify the Taskfile, then at least a note about this should be made on https://mamba.readthedocs.io/en/latest/developer_zone/dev_environment.html#
@@ -1,6 +1,8 @@
version: '3'

vars:
PWD:
sh: pwd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pwd a command on Windows? Can you add a comment why this change was added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pwd is an alias in Windows PowerShell for Get-Location. I've verified it works on Windows when using Task. And sure I can add a comment.

@AntoinePrv AntoinePrv merged commit 36dd8fe into mamba-org:main Mar 14, 2024
@carschandler carschandler deleted the patch-1 branch March 14, 2024 11:28
@Hind-M Hind-M added the release::bug_fixes For PRs fixing bugs label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release::bug_fixes For PRs fixing bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants