Skip to content
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

Support for dotnet-install.ps1 on Linux #417

Open
gdbarron opened this issue Nov 21, 2023 · 1 comment
Open

Support for dotnet-install.ps1 on Linux #417

gdbarron opened this issue Nov 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gdbarron
Copy link

Are there any plans to support the PowerShell install script on Linux? I see right now it relies on windows only Get-CimInstance to retrieve the architecture which obviously won't work. I'm wondering if this is something that's feasible, but just hasn't been done yet.

My use case is installing on Alpine Linux (in Docker) so I can use Publish-Module in my pipeline. For now, I'm using this workaround:

    - apk add bash
    - /bin/bash
    - wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
    - chmod +x dotnet-install.sh
    - ./dotnet-install.sh
    - exit # from bash and back into PS
    - $env:PATH += ':/root/.dotnet'
    - Publish-Module -Path ......
@baronfel
Copy link
Member

We don't currently have plans, but I agree that it makes sense to do. It would be a decent chunk of work, though - the current powershell script has hard-coded windows asset paths and would need to learn the per-OS pivots that the bash script currently has.

@YuliiaKovalova YuliiaKovalova added the enhancement New feature or request label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants