If importing solar panels is a dependency on a foreign power then so is importing oil drills and coal mining equipment.
Panels are oil drills, not oil.