tilt-dev / tilt

Define your dev environment as code. For microservice apps on Kubernetes.
https://tilt.dev/
Apache License 2.0
7.69k stars 303 forks source link

Ignore Circular Dependencies #5945

Open fbrodrigorezino opened 2 years ago

fbrodrigorezino commented 2 years ago

Describe the Feature You Want

When loading or including an extra Tilt file, add a param where we can tell just to ignore when a circular dependency happens. So, when it happens, Tilt just doesn't load the file again, everything is fine.

Current Behavior

It throws an error when circular dependency.

Why Do You Want This?

The company has very intertwined situations, and some lead to circular dependencies. Currently, it shows as an error. Yes, it's not the ideal scenario, but it doesn't need to be an error.

nicks commented 2 years ago

I'm not sure I understand. Do you mean a circular dependency between load() files? Or a circular dependency between resource_deps? Can you give an example with a description of how you'd like it to behave?