You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
installpsh-amazonlinux.sh not detecting amazon linux #9285
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.
I can't figure out what commit did this, but the OS detection routine in installpsh-amazonlinux.sh has been dramatically simplified from what is still in install-powershell.sh.
It is now missing the amazon linux detection routines.
The original design allowed for the underlying installers to be called directly - but they still need the full linux detection routine in order validate they are being run on the correct OS.
My container builds that install PowerShell are now failing:
On this issue, I think we can move these changes in to the sub-image proposed by 200, assuming we go with that solution. PowerShell/PowerShell-Docker#178
I liked it the original way because for those of us who are automating a known distro we don't need two internet downloads - or any actually. And then these sub-installs can self-validate that you are running them on the proper platform.
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.
Activity
TravisEz13 commentedon Apr 3, 2019
Yup... I am waiting on feedback on two issues in the docker repo before I can add tests for amazon linux.
PowerShell/PowerShell-Docker#200
On this issue, I think we can move these changes in to the sub-image proposed by 200, assuming we go with that solution.
PowerShell/PowerShell-Docker#178
TravisEz13 commentedon Apr 7, 2019
I have a PR adding CI for this and the script is working fine. At least calling it through
install-powershell.sh#9314
DarwinJS commentedon Apr 7, 2019
As I mentioned, the original intent was that if you knew your distro, you wouldn't need two scripts to get the job done.
It looks like the sub-installers are now dot sourced into the overall script - which means the distro detection is passing through.
But then this big block of now non-working (for Amazon Linux) distro detection in the sub-install script is unnecessary if the sub-install is going to always assume it is called from the overall: https://github.com/PowerShell/PowerShell/blob/master/tools/installpsh-amazonlinux.sh#L53-L83
I liked it the original way because for those of us who are automating a known distro we don't need two internet downloads - or any actually. And then these sub-installs can self-validate that you are running them on the proper platform.
TravisEz13 commentedon Apr 7, 2019
This is the only change not by you, although you reviewed the change:
#9071
I'm adding a CI job for your scenario to my PR.