One lesson of history the governments can try to remember is: do not sacrifice your strategic goals for a short-term gain, or "avoid hotfixes in production".
Example 1: Septimus Severus raised the legionary's yearly pay from 300 to 400 denarii while decreasing the amount of silver in a denarius by a half, thus thoroughly upsetting the Roman economy.
Example 2: Treaty of Brest-Litovsk with Ukraine on 9 February 1918. Ukraine obliged to deliver grain to Austria-Hungary to relieve the food shortage. In exchange, Ukraine was given lands that Polish people considered their own. When the news went public, the Poles, hitherto the most loyal nation to the Habsburgs, changed the orientation to anti-Austrian. In due time, their Regency Council declared independence.