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

rehash overrides ssh/config and ssh/known_hosts files #15

Open
endorama opened this issue Mar 6, 2024 · 1 comment
Open

rehash overrides ssh/config and ssh/known_hosts files #15

endorama opened this issue Mar 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@endorama
Copy link
Owner

endorama commented Mar 6, 2024

When rehashing the mentioned files are always emptied (as overwritten with an empty content).

@endorama endorama added the bug Something isn't working label Mar 6, 2024
@endorama
Copy link
Owner Author

os.Create truncates file when already present. I suspect this is the issue, as those files should be created during setup and not touched afterwards.

I'm thinking of refactoring how the setup works: instead of directly performing actions affecting the fs, return some structure like plugin.Generated (should support folders too) and let the plugin manager handle that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant