gauge-sh / tach

A Python tool to enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip πŸ”§ Able to be adopted incrementally - ⚑ Implemented with no runtime impact ♾️ Interoperable with your existing systems πŸ¦€ Written in rust
https://gauge.sh
MIT License
953 stars 33 forks source link

sync should delete modules which do not exist #145

Closed emdoyle closed 3 weeks ago

emdoyle commented 2 months ago

To see this behavior, you can add:

- path: notarealmodule
  depends_on: []
...

into your tach.yml, and then run tach sync.

Right now, the module notarealmodule will remain in the tach.yml file. This PR should instead remove all modules listed which cannot be resolved from the configured source root.

ranjanmangla1 commented 1 month ago

@emdoyle is it still open?

emdoyle commented 1 month ago

@ranjanmangla1 Yes!

dhananjaypai08 commented 1 month ago

Hi @emdoyle , haven't we depreciated the --prune command and have introduced --add?

emdoyle commented 1 month ago

Hi @emdoyle , haven't we depreciated the --prune command and have introduced --add?

Yes, that's right - this issue was out-of-date so I've just updated it!

tiluckdave commented 1 month ago

@emdoyle Should I take this one?

emdoyle commented 1 month ago

@emdoyle Should I take this one?

That would be great, thanks!