pnpm / action-setup

Install pnpm package manager
https://github.com/marketplace/actions/setup-pnpm
MIT License
936 stars 89 forks source link

pnpm action does not support Windows #4

Closed FFdhorkin closed 3 years ago

FFdhorkin commented 4 years ago

The github action to install pnpm doesn't appear to work if you are on windows. Running on Linux and OSX appears to work as expected.

I've got an example file here, and the output below as an image (I'm trying to add pnpm support to Cypress.io): https://github.com/FFdhorkin/github-action/blob/feature/pnpm-support/.github/workflows/example-basic-pnpm.yml

image

KSXGitHub commented 4 years ago

This bug seems to have been caused by pnpm self-installer sometimes not working correctly on Windows.

@zkochan Can you take a look at this?

KSXGitHub commented 3 years ago

I have released v2.0.0-rc.0. Try if it works on Windows.

meeroslav commented 3 years ago

I got same error with Ubuntu and version 2.0.1:

Run pnpm/action-setup@v2.0.1
  with:
    version: 6.7.6
    dest: ~/setup-pnpm
    run_install: null
Running self-installer...
  [stdin]:4225

  SyntaxError: Unexpected end of input
      at new Script (vm.js:84:7)
      at createScript (vm.js:258:10)
      at Object.runInThisContext (vm.js:306:10)
      at Object.<anonymous> ([stdin]-wrapper:9:26)
      at Module._compile (internal/modules/cjs/loader.js:959:30)
      at evalScript (internal/process/execution.js:80:25)
      at internal/main/eval_stdin.js:29:5
      at Socket.<anonymous> (internal/process/execution.js:192:5)
      at Socket.emit (events.js:215:7)
      at endReadableNT (_stream_readable.js:1184:12)
Error: Something does wrong, self-installer exits with code 1

Strangely enough, this happened in the matrix with 36 combinations, where all the other combinations worked.

I cannot reproduce it again, unfortunately.

Here are the details about the machine:

Current runner version: '2.278.0'
Operating System
  Ubuntu
  20.04.2
  LTS
Virtual Environment
  Environment: ubuntu-20.04
  Version: 20210614.1
  Included Software: actions/virtual-environments@ubuntu20/20210614.1/images/linux/Ubuntu2004-README.md
  Image Release: actions/virtual-environments@ubuntu20%2F20210614.1 (release)
GITHUB_TOKEN Permissions
  Actions: write
  Checks: write
  Contents: write
  Deployments: write
  Discussions: write
  Issues: write
  Metadata: read
  Packages: write
  PullRequests: write
  RepositoryProjects: write
  SecurityEvents: write
  Statuses: write
KSXGitHub commented 3 years ago

There's no response, I'm closing this.