Like many modders, I'm using git to version my work. This works nicely except when I have to bump the version number. The process is:

Close the VSCode workspace

Close the repo in SourceTree

Rename the folder

Open the workspace again

Change the info file to match

Open the repo again

Commit

If Factorio allowed mod folders without a version number (as a special case: it should still check that they match if they're there), the process would look like this:

Change the info file

Commit

Ooh, that would be so satisfying...

Your git repo resides inside the Factorio mod folder? No offense, but that is a bad idea. What if Factorio decides to remove the mod (say because your little brother clicked the delete mod button)? Hope your remote repo is up-to-date...
Instead, have your repo in a separate location and use a deploy script and/or symlinks. It is a bit more work to get going, but worth the effort. You will never have to worry about folder names again. If you are on windows, I can share my powershell script if you are interested.

Like many modders, I'm using git to version my work. This works nicely except when I have to bump the version number. The process is:

Close the VSCode workspace

Close the repo in SourceTree

Rename the folder

Open the workspace again

Change the info file to match

Open the repo again

Commit

If Factorio allowed mod folders without a version number (as a special case: it should still check that they match if they're there), the process would look like this:

Change the info file

Commit

Ooh, that would be so satisfying...

Your git repo resides inside the Factorio mod folder? No offense, but that is a bad idea. What if Factorio decides to remove the mod (say because your little brother clicked the delete mod button)? Hope your remote repo is up-to-date...
Instead, have your repo in a separate location and use a deploy script and/or symlinks. It is a bit more work to get going, but worth the effort. You will never have to worry about folder names again. If you are on windows, I can share my powershell script if you are interested.

Up until recently if you had a symlink then factorio would delete the git repository you link to.

What I do at the moment is "cd mods; git clone ../../MyMod MyMod-0.0.1". Then I can pull and push and if I loose the clone nothing big is lost.

Your git repo resides inside the Factorio mod folder? No offense, but that is a bad idea. What if Factorio decides to remove the mod (say because your little brother clicked the delete mod button)? Hope your remote repo is up-to-date...
Instead, have your repo in a separate location and use a deploy script and/or symlinks. It is a bit more work to get going, but worth the effort. You will never have to worry about folder names again. If you are on windows, I can share my powershell script if you are interested.

Thanks! I’m on macOS but I’d like to see your scripts anyway.

The symlink still needs to be renamed, right? Have you automated that?