{Packaging} Remove Windows binary from source repository#12296
{Packaging} Remove Windows binary from source repository#12296
Conversation
Binaries should not be checked in source trees. All kind of alarms are set off when packaging a new source and it includes a pre-built binary.
|
packaging |
|
If the CI needs it, then shouldn't it build it? |
|
The msi installer of Azure CLI adds the path of azure-cli/build_scripts/windows/Product.wxs Lines 95 to 101 in 844005a According to Environment Variables doc:
So the installer needs to broadcast the environment variable change using To verify that, you may change registry key HKEY_CURRENT_USER\Environment or HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment to add an environment variable This will not return propagate_env_change.exe calls azure-cli/build_scripts/windows/propagate_env_change/main.cpp Lines 5 to 11 in df3943f It is included in the msi installer: azure-cli/build_scripts/windows/Product.wxs Lines 42 to 53 in 844005a Removing it causes the CI to report an error. (Though I have no idea why CI still shows green.) The source code is checked into the repository, but we need a signed binary and it was not worthwhile to do auto code sign just for this little one. Thanks for understanding. |
Please reconsider. I'll have to repack the source downstream to mangle it and remove the offending binary otherwise, and I don't really want to have to do that. |
|
Ok I got your point. @fengzhou-msft can we move it to |
|
Thank you! |
I will work on it. Can you open an issue to track it? |
Binaries should not be checked in source trees. All
kind of alarms are set off when packaging a new source and
it includes a pre-built binary.