Duplicate dependencies in Phoenix projects

I have noticed that several of my Phoenix projects contain duplicate dependencies in the deps folder. As an example, here is the Floki folder of one of my projects.

Screenshot 2023-04-28 at 14.34.47

These duplicate dependencies break, for example, mix test. I can clean and refetch the dependencies, to get rid of the duplicates, but I would like to understand why this happens in the first place. I have not been able to figure that out yet.

Any experience with this and/or know why this might happen?

Wild ass guess but maybe Elixir-LS is configured to pull deps and it’s sometimes clashing? IDK why that would result in copies though. Should just crash it. My other guess would be an overly broad asset compilation glob string?

Thanks for the reply.

I found out today that it most likely has to do with iCloud background syncing. Maybe because my iCloud Drive was getting full. Some other weird stuff started to happen, like deletes files reappearing in my local repos.

1 Like