Skip to content

decouple the teambit.harmony/bit dependency from core aspects #9375

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

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

davidfirst
Copy link
Member

Bit aspect (teambit.harmony/bit) depends on all core aspects. This is needed because this aspect is the main entry of bit, it loads all those core aspects and also we want to this aspect to get a new version every time a core-aspect has changed, so then when running bit, all the core aspect are always up to date.

However, some core aspects, e.g. Generator aspect were depended on Bit aspect (practically forming a circular dependency) for mainly two tasks: loadBit() and getting core-ids. Because of this circular, changing core aspects triggers an auto-tag of most of the core aspects. Leading to unnecessary tags and slow deployment.

This PR breaks this direction of dependency by injecting the APIs needed to those aspects from the loadBit function. It's not pretty, but it's much better than how it is now.

@davidfirst davidfirst enabled auto-merge (squash) December 11, 2024 20:25
@davidfirst davidfirst merged commit f62f573 into master Dec 11, 2024
10 checks passed
@davidfirst davidfirst deleted the decouple-harmony-bit branch December 11, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants