nuke
nuke copied to clipboard
Global Tool add update script command
Description
The goal of this feature would be to have a command to update the build scripts (build.ps1, build.sh and build.cmd) within a nuke project.
I just solved an issue in one of my builds
Running "build_script" scripts
.\build.ps1 Pack
Windows PowerShell 7.0.1
/bin/mkdir: invalid option -- 'f'
Try '/bin/mkdir --help' for more information.
Command exited with code 1
Build failed
by updating my build.sh which made me think, we can do better by including a command in Nuke.GlobalTool to update commands.
- we could discuss adding a version comment to the scripts and have nuke check these versions when booting with a warning that the versions are out of date.
Happy to push a PR for this feature.
Alternatives
- we could just document that users need to update these scripts manually after every upgrade of nuke.common but it doesn't seem as nice as adding a command for something we have most of the code for.
❤️ - this is excellent. Thank you @matkoch !