Field notes / Note 015
The script that was still its old self
2 min
A deploy script updates itself. A fix went into it, the deploy ran, and the fix had plainly not worked.
The fix was fine. The run that pulled the new script was still executing the old copy, and only staged the new one partway through. It took two deploys to see the change.
An hour can go on this. The instinct is to doubt the fix, rewrite it, deploy again, and then credit the rewrite when the first version finally runs.
When a program replaces itself, the first run after the change is still the previous program.