pnpm / pnpm/action-setup

install-pnpm Action ignores proxy

Open
#53 0 comments 0 reactions 1 assignee View on GitHub

@zkochan is already working on this.

Since Sep 12, 2022.

Dominant language
TypeScript
Stars
1.3k
Forks
217
Avg merge
8h 42m
Merged PRs (30d)
1

Description

I tried to set the proxy for the installation via npm config and environment variable and it appears to be ignored

      #- name: Set npm config http-proxy
      #  run: |
      #       npm config set proxy http://proxy:8080
      #       npm config set https-proxy http://proxy:8080
           
      - uses: pnpm/action-setup@v2.0.1
        name: Install pnpm
        id: pnpm-install
        env:
          https_proxy: http://proxy:8080
        with:
          version: 7
          run_install: false

Output

12m 25s
Run pnpm/action-setup@v2.0.[1](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:1)
  with:
    version: 7
    run_install: false
    dest: ~/setup-pnpm
  env:
    https_proxy: http://proxy:8080
Running self-installer...
  FetchError: request to https://pnpm.js.org/pnpm.js failed, reason: connect ETIMEDOUT 104.[2](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:2)6.8.84:44[3](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:3)
  Error: FetchError: request to https://pnpm.js.org/pnpm.js failed, reason: connect ETIMEDOUT 10[4](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:4).2[6](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:6).8.84:443
      at ClientRequest.<anonymous> (/runner/_work/_actions/pnpm/action-setup/v2.0.1/dist/index.js:1:222664)
      at ClientRequest.emit (events.js:314:20)
      at TLSSocket.socketErrorListener (_http_client.js:42[7](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:7):9)
      at TLSSocket.emit (events.js:314:20)
      at emitErrorNT (internal/streams/destroy.js:92:[8](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:9))
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    type: 'system',
    errno: 'ETIMEDOUT',
    code: 'ETIMEDOUT'
  }
  Error: The operation was canceled.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.