-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Linux: Initial support for Gentoo installations. #11429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b078013 to
a1d79e2
Compare
|
Fixed removing the temp directory and made the output nicer. |
ea98d0e to
e79a7a4
Compare
e79a7a4 to
d11c99b
Compare
|
Added support for |
d11c99b to
1fa052a
Compare
|
Made more improvements, it now finds the latest ubuntu dist automatically and doesn't use |
|
I am pretty much done with this. I know it's the holidays and everything, but can someone take a look please? I can work on other stuff separately. |
db4f35d to
6bcf18f
Compare
|
@anmenaga Could you please review this PR? Thanks! |
6bcf18f to
1052a08
Compare
1052a08 to
0e7fb8c
Compare
|
@daxian-dbw I realize I made some opinionated decisions here, but horrible hacks are often the best solution on gentoo. I might work on a proper ebuild in the main gentoo repository for this, but I think this solution is not terrible for the time being and will work for most gentoo users. Also this code does not affect the other installers much, so there is little potential for breakage. I am also happy to contribute to these scripts in the future. Let me know if you need anything else. |
|
@rkitover My apology for the delay. I will drive the review process on our side. Thank you for your patience! |
|
@anmenaga @TravisEz13 Can you please review this PR after the 7.0.0-rc.3 release? Thank you! |
|
@anmenaga @TravisEz13 A gentle ping :) Please take a look at this PR, thanks! |
anmenaga
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly fine to me except that it pulls some stuff from 3rd parties:
https://github.com/fosero/...https://raw.githubusercontent.com/DarwinJS/...
@TravisEz13 can you please look at this? Thank you.
Add Gentoo to list of supported distributions and add a tools/installpsh-gentoo.sh script which installs the latest Ubuntu powershell or powershell-preview .deb using the Gentoo dpkg port. If -includeide is specified, also installs Visual Studio Code via flatpak, installing flatpak-overlay and flatpak if necessary. This should work for most Gentoo users with a relatively recent system. Also fix sudo check and pwsh-preview test in tools/installpsh-debian.sh. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
0e7fb8c to
bfa92d2
Compare
|
Thank you very much for looking at this, it's not very important of course, but I might do more work on these scripts too. Just a note that the DarwinJS URL is taken straight from the debian script for the vscode extension. |
|
@daxian-dbw ping, I have one review. Explanation of URLs:
I'd like to get more involved in this project, I have been waiting on this PR. Thank you!
|
|
|
||
| #gitrepo paths are overrideable to run from your own fork or branch for testing or private distribution | ||
|
|
||
| VERSION="1.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if you added a test for this, but you need a gentoo container that will work in azure devops.
meaning it needs node, sudo, and adduser (I might be forgetting some, here is what we check for, some are for our tests, https://github.com/PowerShell/PowerShell-Docker/blob/master/tests/container.tests.ps1#L567-L578)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will look into this, I've never worked with azure but I've done work with docker containers etc.. And it looks like some base images for gentoo are available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You would probably have to build it.
|
🎉 Handy links: |
Add Gentoo to list of supported distributions and add a
tools/installpsh-gentoo.sh script which installs the Ubuntu 18.04
powershell or powershell-preview .deb using the Gentoo dpkg port.
If -includeide is specified, also installs Visual Studio Code via
flatpak, installing flatpak-overlay and flatpak if necessary.
This should work for most Gentoo users with a relatively recent system.
Also fix sudo check and pwsh-preview test in tools/installpsh-debian.sh.
Signed-off-by: Rafael Kitover rkitover@gmail.com
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.