Skip to content

Are the Utils PowerShell Core Depends on in Linux managed and published? #9830

Closed

Description

@DarwinJS

The Get-Help on Linux Depends on "less" command - this is an Amazon Linux 2 container (which - as provided by AWS - has a completely minimalized package footprint) and I get this error:
image

This raises the questions:

  • is there a managed list of what PowerShell core assumes is on the system?
  • shouldn't the packages for PowerShell Core check for and resolve these dependencies if system commands depend on them?
  • or should it just not depend on any OS packages?

Apologies if this is covered somewhere - if so, please drop a link in this issue :)

Activity

  1. vexx32 commented on Jun 5, 2019

    @vexx32
    Collaborator

    I have raised a concern related specifically to the availability of less/more here before: #7851

    FWIW it's not Get-Help that has this dependency; it's the help function, which is actually a function and not a true alias. Get-Help on its own normally does not provide paging.

    I'm of the opinion that PS should not be dependent on any OS-specific packages that it is not itself providing in the installation.

  2. added
    WG-Maintainers-Build
    Issue-Question
    on Jun 13, 2019
  3. iSazonov commented on Jan 30, 2020

    @iSazonov
    Collaborator

    /cc Steve Lee (@SteveL-MSFT) for any conclusion. Should we fix the dependency? Should we document dependencies?

  4. SteveL-MSFT commented on Jan 31, 2020

    @SteveL-MSFT
    Member

    It seems we can resolve this by checking if less is available before using it, otherwise, just don't page.

  5. iSazonov commented on Jan 31, 2020

    @iSazonov
    Collaborator

    It seems we already check if less or another pager present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-QuestionResolution-FixedWG-Maintainers-Build

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions