Publishing a Breaking Change¶
If your updates will cause previous installs of the geocoder to fail to work, (For example, a major change to how the powershell script interfaces with the backend), you will need to create a release as mentioned above and update powershell/min_exe_version.txt to match the version in the change. This will prevent the user from being able to run the executable if their version is older than the breaking change.
To publish a breaking change:
- Update
powershell/min_exe_version.txtto the latest semver number. The format isv2.0.0. In the future, we plan to remove the 'v' from the string. - Update
powershell/geocoder_for_exe.ps1so that$exeVersionvariable matches the latest semver number - Please flag in any PR that you have created a breaking change, and have a second person review.
- Once merged, create a release and push to main with the latest semver number
The check works as follows:
- The exe should pull the most recent code on
main, which will pull the latest copy ofmin_exe_version.txt. - The exe will check the executable version in the file against
powershell/min_exe_version.txt. You must update the $exeVersion variable in the powershell file for this to work. This check works by stripping the "v" from the semver string, and then using powershell's[System.Version]to compare versions. - If the executable version is too low, the script will give the user an error and exit.