msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
292 stars 40 forks source link

database file for 'clang32' does not exist #216

Closed eko5624 closed 2 years ago

eko5624 commented 2 years ago
warning: database file for 'clang32' does not exist (use '-Sy' to download)
  error: failed to prepare transaction (could not find database)
  Error: The process 'C:\Windows\system32\cmd.exe' failed with exit code 1
Biswa96 commented 2 years ago

Duplicate of https://github.com/msys2/setup-msys2/issues/215 which have been fixed recently.

eko5624 commented 2 years ago

Haven't fixed yet. https://github.com/eko5624/mpv-win64/runs/6243856398?check_suite_focus=true

Biswa96 commented 2 years ago

The changelog says "Enable CLANG32 when release is true". Not sure where to add that.

jeremyd2019 commented 2 years ago

Apparently a sync (pacman -Sy) needs to be done after adding clang32 to pacman.conf

eko5624 commented 2 years ago

so what I should do to fix this?

Biswa96 commented 2 years ago

Wondering why clang32 and clangarm64 were not added in pacman.conf yet. Then these type of workarounds would not require.

eko5624 commented 2 years ago

workarounds: don't use this:

      install: >-
        git
        base-devel

use this:

    - name: Install additional packages     
      shell: msys2 {0} 
      run: |
        pacman -Sy base-devel git --noconfirm
Kha commented 2 years ago

Pinning the action to v2.10.0 as in the commit above also works

eine commented 2 years ago

@eko5624 @Kha are you using update: false?

eko5624 commented 2 years ago

@eine Yes, I use default. By default, the installation is not updated.

eine commented 2 years ago

This should be fixed now. In order to install packages on CLANG32, release: true (default) and update: true are required (see https://github.com/msys2/setup-msys2/commit/5bb19b04198a16a0282d7abcc1fdb877a1514790). Other use cases should not be affected.