SuperCuber / dotter

A dotfile manager and templater written in rust 🦀
The Unlicense
882 stars 46 forks source link

[BUG] dotter init fails when any files are present in CWD #81

Closed Diomendius closed 3 years ago

Diomendius commented 3 years ago

Environment

Description

When dotter init is run in a directory containing any file besides a .dotter directory, the command fails with the following output:

[ERROR] Failed to initalize directory
Caused by:
    save dummy config
    save global config
    serialize data
    unsupported Rust type

Reproduction

In a suitable temporary directory, run:

touch file
dotter init

Additional notes

I have tracked down the source of this bug and have submitted a pull request (#82).

I'm not sure how this was missed until now; maybe it was a regression and dotter init hasn't been tested since it was first implemented.

SuperCuber commented 3 years ago

@Diomendius A release including the PR has been created :D