iffy / install-nim

Github Action to install Nim
MIT License
30 stars 1 forks source link

`nimble install` fails on Windows because of missing CA certificates #11

Closed markspanbroek closed 3 years ago

markspanbroek commented 3 years ago

Example run:

Run nimble install -y
  nimble install -y
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  Verifying dependencies for quic@0.1.0
    Prompt: No local packages.json found, download it from internet? -> [forced yes]
Downloading Official package list
       Tip: 6 messages have been suppressed, use --verbose to show them.
     Error: Refresh failed
        ... Could not download: No SSL/TLS CA certificates found.
Error: Process completed with exit code 1.

Workflow file:

name: CI

on: [push, pull_request]

jobs:
  test:
    runs-on: ${{ matrix.os }}
    timeout-minutes: 10
    strategy:
      matrix:
        os: [ubuntu-latest, macOS-latest, windows-latest]
    steps:
    - uses: actions/checkout@v2
    - uses: iffy/install-nim@v3
    - name: Build
      run: nimble install -y
    - name: Test
      run: nimble test -y
iffy commented 3 years ago

I'm trying to figure out what's going wrong. I think this is an upstream problem with choosenim, and maybe even more upstream with the new Nim version (1.4.4)? Here are some related discussions:

Does the build succeed if you use the following?

- uses: iffy/install-nim@v3
  with:
    version: 1.4.2
iffy commented 3 years ago

I've duplicated the problem here: https://github.com/iffy/install-nim/runs/2254042541?check_suite_focus=true

Yes, I believe this is a problem with Nim 1.4.4. The problem does not appear with the latest devel nor with 1.4.0.

markspanbroek commented 3 years ago

Thanks @iffy, knowing that the problem is likely solved on Nim devel, I’ll work around the problem for now by either adding a step that installs the certificates, or use Nim 1.4.2.

markspanbroek commented 3 years ago

With Nim 1.4.6 the problem is solved. Closing this issue.