I had a problem with the management of dependencies: sometimes an app would stop working because on its dependency graph another app would appear twice, once with the Development and once with the Published version. When that happened I had to start digging on all the dependencies and their dependencies and make sure they were using the correct version.
I finally decided to follow this guidelines with the management of dependencies and the problem disappeared: every time I publish an app that can be used as a dependency I follow these steps:
- Set all its dependencies to Published
- Publish
- Set all its dependencies to Development
This guarantees that when I work on an app, whether that is at the top, middle or bottom of the dependency chain, I will never bother any app, whether it is published or not.
So my question is: why am I free to set the version of the dependencies? Why is it not automatically set to Development while I work on it and to Published when I publish?
I think this should be a feature request, but I might be missing some use case where the current flexibility is required.
I would like to hear opinions from both Anvil users and Anvil creators.