Skip to content

Only runs on linux if WSL #102

@EchelonFour

Description

@EchelonFour

Describe the bug
Even though the tool supports linux through the nuget credential provider, it doesn't work unless you use a WSL based linux. It exits with this message:

Platform linux and architecture x64 not supported for automatic authentication.

To Reproduce
Steps to reproduce the behavior:

  1. Be on linux
  2. npx ado-npm-auth

Expected behavior
If the tool supports linux it should not error when it sees linux

Additional context

I can see the tool checks the os here, but it uses the function to check if the platform supports azureauth.

It also has a check when generating the token

Seems like the first check is redundant and causing the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions