Skip to content

install-powershell.sh filter prereleases (when available), params documentation - #6849

Merged
Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
DarwinJS:installerprereleasesupport
Jun 25, 2018
Merged

Travis Plunk (TravisEz13) merged 6 commits into
PowerShell:masterfrom
DarwinJS:installerprereleasesupport

Conversation

@DarwinJS

@DarwinJS Darwin (DarwinJS) commented May 10, 2018 •

Copy link
Copy Markdown
Contributor

PR Summary

Fixed #6815 by adding -allowprereleases parameter
Fixed #6405 by adding -allowprereleases parameter
Added parameters to documentation
Ready for prerelease repositories if Microsoft starts providing them
Added -skip-sudo-check for all distros
Fixed -interactivetesting should do nothing if -includeide was not used

PR Checklist

Travis Plunk (@TravisEz13) - If you create pre-release repos as per #6496 this switch can be used to add those repo links in the relevant distro install scripts. Currently it just issues a warning that whatever is on the repo dictates whether pre-releases will be installed.

@DarwinJS Darwin (DarwinJS) changed the title install-powershell.sh filter prereleases (when available), params documentation WIP: install-powershell.sh filter prereleases (when available), params documentation May 10, 2018
@DarwinJS

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) - I can't recall what to do about spelling errors in MD files - can you please remind me what we did last time?

@TravisEz13

Copy link
Copy Markdown
Member

You need to add the missing words in this section https://github.com/PowerShell/PowerShell/blob/master/.spelling#L215
image

@DarwinJS

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) - Looks like this is failing at the OSX sudo password prompt? How to handle this? Thanks! https://travis-ci.org/PowerShell/PowerShell/jobs/380487406

@TravisEz13

Travis Plunk (TravisEz13) commented May 21, 2018 •

Copy link
Copy Markdown
Member

Darwin (@DarwinJS) SUDO -v almost never works in CI. You'll have to update the code to skip this check. Or remove it altogether as unreliable.

@DarwinJS

Darwin (DarwinJS) commented May 22, 2018 •

Copy link
Copy Markdown
Contributor Author

Is there a way to detect CI? Is checking for POWERSHELL_TELEMETRY_OPTOUT=1 good enough or is there a better way?

There have not been any complaints about the sudo check (that I know of) beyond CI.

FYI - I updated the sudo check to be non-interactive.

@TravisEz13

Copy link
Copy Markdown
Member

most CI systems, except VSTS define a variable called CI. You can just doc that you expect that variable to be defined.

@DarwinJS

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) - I put in place the skipping of the sudo check, but also skipped sudo assuming I had admin.

So is the magic that I DO need to use SUDO - but I can't check for it?

How has this not been failing for months - it used to work without any special SUDO handling, but didn't break until I touched it.

Can you look at the build log?

@TravisEz13

Copy link
Copy Markdown
Member

My statement about sudo -v never working was too broad. It never worked in macOS, but other CI systems it doesn't work in debian. When in CI, we need to use sudo but not run sudo -v as it may fail. The equivalent of skip-sudo-check, these other systems is what I added this switch for. Just detecting CI and automatically skipping should be enough.

Also, you should look at the package renaming during preview.3 and see if this affects your change.

@DarwinJS

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) - builds are passing - should I remove "WIP" ?

@TravisEz13 Travis Plunk (TravisEz13) changed the title WIP: install-powershell.sh filter prereleases (when available), params documentation install-powershell.sh filter prereleases (when available), params documentation Jun 25, 2018
@TravisEz13
Travis Plunk (TravisEz13) merged commit 53e6ec6 into PowerShell:master Jun 25, 2018
Ilya (iSazonov) pushed a commit that referenced this pull request Oct 1, 2018
* Fix syntax error for issue 7903. Typo come from #6849 

* Add identation after copyright message
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…umentation (PowerShell#6849)

Fixed PowerShell#6815 by adding -allowprereleases parameter
Fixed PowerShell#6405 by adding -allowprereleases parameter
Added parameters to documentation
Ready for prerelease repositories if Microsoft starts providing them
Added -skip-sudo-check for all distros
Fixed -interactivetesting should do nothing if -includeide was not used
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
* Fix syntax error for issue 7903. Typo come from PowerShell#6849 

* Add identation after copyright message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants