nuke
nuke copied to clipboard
Generation for CI/CD should abort on server if files changed
Description
Currently, generation of CI/CD files is only enabled locally. Sometimes users forget to run nuke
once more to update those files and therefore the build runs with old configuration. Instead, throw an error when files have been updated.
See https://github.com/nuke-build/nuke/blob/develop/source/Nuke.Common/CI/InvokeBuildServerConfigurationGenerationAttribute.cs
Usage Example
No response
Alternative
No response
I've noticed that when generating on Windows/macOS these files will change even when the definition does not change. This is due to changes in the Line Endings where Windows will use \r\n
and Mac will use \n
.
Before this could be implemented the files would need to be compared while ignoring line endings.