The market place seems to be operating as it should. :) It will sort itself out.
When governments step in to pick winners with subsidies (where their voters work) we all lose eventually.
The only complication is if the only source of whatever becomes a bad guy who holds you to ransom. Then you have to go to war to get some of that good stuff you need. I doubt solar panels are in that category.
So to avoid that, you might subsidize a local inefficient thing for "strategic" reasons. Should be done rarely. However, trust your local politician to vote for what pleases his local voters.
Note the high agriculture subsidies in every country and the ads to "buy local"---at some outrageous price of course. Some hippy who decides to be a farmer and thinks he should be able to earn a living doing that, never mind the real world.