Skip to content

[PackageManagement] Need to use platform agnostic methods to manage bootstrapping #1174

Closed

Description

On linux/OSX, certain PkgMgmt functionality such as bootstrapping, updating providers are broken because of the dependency on the following env variables:

$env:APPDATA
$env:LOCALAPPDATA
$env:ProgramFiles

These make sense only on Windows. We need to use platform agnostic methods to manage bootstrapping.

Activity

  1. added
    Issue-Bug
    Blocked
    on Jun 22, 2016
  2. andyleejordan commented on Jun 22, 2016

    @andyleejordan
    Member

    Do you mean only on Windows, or on Linux too? They don't make much sense on Linux, and should be inherited from the environment on Windows.

  3. raghushantha commented on Jun 22, 2016

    @raghushantha
    MemberAuthor

    PackageManagement bootstrapping mechanism uses these paths to manage out-of-box providers (such as Nuget Provider, PackageList provider).

    Also, PowerShellGet uses programfiles location to install modules from the Gallery.

    For Linux, the above is broken without these variables being initialized.

    Ideally PkgMgmt must not take dependency on platform specific paths..

  4. andyleejordan commented on Jun 22, 2016

    @andyleejordan
    Member

    PkgMgmt will need to be modified to use XDG BDS locations on Linux / OS X, it cannot use the Windows variables. A (@ealexjordan) can help with this.

  5. changed the title [-][PackageManagement] OPS needs to initialize certain env variables[/-] [+][PackageManagement] Need to use platform agnostic methods to manage bootstrapping[/+] on Jun 22, 2016
  6. ealexjordan commented on Jun 27, 2016

    @ealexjordan
    Contributor

    As per the meeting, the XDG specifications are at:
    https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

    The following issue and pull request may also be of some help:
    #935
    #1060

  7. added
    Area-PackageManagement
    on Jun 27, 2016
  8. raghushantha commented on Jul 7, 2016

    @raghushantha
    MemberAuthor

    This work item is done

    #1282

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

Metadata

Metadata

Labels

Area-PackageManagementBlockedIssue-Bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions