anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
7.04k stars 291 forks source link

Dotbot from PyPI just won't work under Windows10 #323

Closed devholland closed 1 year ago

devholland commented 2 years ago

Hello,

Excuse me if I'm doing something wrong, it's the first time I'm trying to use Dotbot and I just can't get it to work under Windows. I installed it via pipx:

pipx install dotbot

I created a test file with Out-File test.txt and a install.conf.yaml with the following content:

- link:
  ~/AppData/test.txt: test.txt

When I try to run Dotbot with dotbot -c install.conf.yaml I always get the following error:

Linking failed ~/AppData/test.txt -> C:\repos\dotfiles\test.txt
Some links were not successfully set up

==> Some tasks were not executed successfully

Any idea what I'm doing wrong? It won't work neither in PowerShell nor in Git Bash.

kurtmckee commented 2 years ago

@devholland You're not doing anything wrong. I encountered the same issues and created PR #313 to address these issues and overhaul the testing so the tests can run on all supported platforms.

For now, you can use git to clone my repo and checkout my branch:

# Clone the repo and checkout the branch with fixes.
git clone git@github.com:kurtmckee/dotbot.git
cd dotbot
git checkout test-on-windows-issue-309

# Build and install the package.
python setup.py sdist
pipx install dist\dotbot-1.19.0.tar.gz
anishathalye commented 2 years ago

Hi! I do intend to merge #313 and related PRs once I get a chance to look at them. Just been insanely backlogged recently, sorry for the delays. Like Kurt said, as a workaround, you can use his branch for now.

kurtmckee commented 2 years ago

No intended pressure from my side, @anishathalye! Getting swamped is something everyone understands. :smile: