Ask HN: How do you Version Control your Scripts?
I have about Two Dozen Scripts in a Legacy Centralized Version Control System and looking to move towards GIT but a lot of the scripts need to be deployed at Different times so the usual branching schemes don't work without a lot of manual intervention. Git with SubModules look like they would work but would become a headache eventually. I guess what are people doing for Script Management?
3 comments
[ 426 ms ] story [ 754 ms ] threadThe scripts might involve a change to how a user is added to the system and another might be a change for how a user is updated. The "update user" script cannot be deployed until the "add user" script is deployed.
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.