Hacker News new | ask | show | jobs
by gregjor 1320 days ago
Again, version control does not imply any particular deployment process, and deployment does not imply when scripts (or any code) gets executed. If you have all of these things mixed together -- version control, build/deploy, and execute -- then you should look at how you can separate those into discrete tasks so script A can't get run before script B. Preventing code execution dependencies like A must run before B shouldn't have anything to do with your version control system.

Your version control and deployment processes should move your applications from one working state to another working state. Temporal runtime dependencies such as "A must run before B" should get handled at run time, either by making A execute B when it successfully finishes, or writing a higher-level script that runs them in order only if both exist.