question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need some clarification on `clean` command

See original GitHub issue

First of all I want to thank you for this project. Just found it today and in love with it 😃 Also, before we continue here, it worth to mention, that english aint my native, so I appologize for any mistakes and misunderstandings in advance.

And now to the point - my question is why

Only dead links that point to the dotfiles directory are removed.

https://github.com/anishathalye/dotbot/blob/master/plugins/clean.py#L39

Is there any funny story behind this check? Like someone unmounted folder on a prod environment, Dotbot deleted broken link and after remounting folder back - server just crushed?

Seriously, I mean, it seems totally illogicaly for me: we have a dead link, that points to nowhere, and instead of clean/overwrite, we just leave it for the gods of errors during futher installation process. Like, for example, I’ve a link ~/.zshrc_alias -> /dev/null that was pointing to some real object in the past, but somehow it’s gone now. And… I can’t delete it and therefore create a new link that will point to my new file ~/.dotfiles/.zshrc_alias.

Just want to understand such implementation before I’ll begin using my patronus on it 😄

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dein0scommented, Mar 22, 2017

Also, regarding to this plugin, it was meant that method self._clean always return True? https://github.com/anishathalye/dotbot/blob/master/plugins/clean.py#L28

And if so, then why do we need this else statemend with logging if we’ll never reach that point?

p.s. Damn, I’m getting addicted to this thing. Even thinking about to write a plugin for handling metaconfigs 😄

0reactions
dein0scommented, Mar 29, 2017

Question answered 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

In Visual Studio, what does the "Clean" command do?
Firstly to clarify on this, a clean doesn't do any building. A clean ensures a full build if you do a subsequent build...
Read more >
Clarification of Adjustment Program Commands for Epson ...
I get a message from the Adjustment Program that the cleaning carts are empty. I guess you need special Epson cleaning carts to...
Read more >
Cache directory clean up clarification - Duplicacy Forum
I've read Cache usage details, Cache folder is is extremely big! , and Cache not clearing. I don't have a .duplicacy/collection directory ...
Read more >
1846360 – Request clarification on when ExecStop is executed
Description of problem: On RHEL8, the systemd.service(5) manpage tends to indicate that ExecStop is called if the service was once started: -------- 8< ......
Read more >
Update container images (some clarification)
Does the following command update the repository, OS, and all software in the container, except the host system hosting Docker?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found