After the Great War, France built a vast fortified line along its German border — turrets, tunnels, every lesson of 1914-18 absorbed. In May 1940 German tanks drove around it through the Ardennes and the Low Countries, exactly where the line was not. The fortifications never failed. They were just irrelevant to the war that came.
The principle: Defenses against the last war are not just useless against the next — they consume the budget and attention that should have built the next. The more perfect the obsolete defense, the worse this gets.