Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on Windows MinGW64 #41

Closed
ColinKennedy opened this issue Dec 23, 2024 · 3 comments
Closed

Can't install on Windows MinGW64 #41

ColinKennedy opened this issue Dec 23, 2024 · 3 comments

Comments

@ColinKennedy
Copy link

I've been trying to install and run busted on Windows and so far haven't found a working example on GitHub yet (at least one that wasn't a ton of lines of .yml workflow).

Whenever I get close to a working product, luasystem, the dependency of busted, fails to build. https://productionresultssa10.blob.core.windows.net/actions-results/363e6e07-90e7-4d91-883a-04e96dbdc869/workflow-job-run-e9ae3079-eccb-5ec6-130e-b728d7c0472e/logs/job/job-logs.txt?rsct=text%2Fplain&se=2024-12-23T04%3A08%3A52Z&sig=utZa%2FfCmqQmS%2BQt%2FNUApS01JT4jx4M8KHkHPDwGiUiw%3D&ske=2024-12-23T15%3A00%3A59Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2024-12-23T03%3A00%3A59Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2024-11-04&sp=r&spr=https&sr=b&st=2024-12-23T03%3A58%3A47Z&sv=2024-11-04

An excerpt of the log file above

2024-12-23T02:07:33.0122480Z   MSYS: winsymlinks:nativestrict
2024-12-23T02:07:33.0123000Z   LUA_PATH: ;;C:\Users\runneradmin\AppData\Roaming\luarocks\share\lua\5.1\?.lua;C:\Users\runneradmin\AppData\Roaming\luarocks\share\lua\5.1\?\init.lua
2024-12-23T02:07:33.0123609Z   LUA_CPATH: ;;C:\Users\runneradmin\AppData\Roaming\luarocks\lib\lua\5.1\?.dll
2024-12-23T02:07:33.0123931Z ##[endgroup]
2024-12-23T02:07:44.5086594Z No existing manifest. Attempting to rebuild...
2024-12-23T02:07:44.5086967Z 
2024-12-23T02:07:44.5088511Z Error: Failed installing dependency: https://luarocks.org/busted-2.2.0-1.src.rock - Failed installing dependency: https://luarocks.org/luasystem-0.4.5-1.src.rock - Build error: Failed finding the Lua library. You can use `luarocks config variables.LUA_LIBDIR <path>` to set the correct location.
2024-12-23T02:07:44.5091201Z Missing dependencies for mega.vimdoc scm-1:
2024-12-23T02:07:44.5091581Z    mini.doc >= 0.14.0, < 1.0 (not installed)
2024-12-23T02:07:44.5091864Z    mega.logging >= 1.0.0, < 2.0 (not installed)
2024-12-23T02:07:44.5092069Z 
2024-12-23T02:07:44.5092242Z mega.vimdoc scm-1 depends on mini.doc >= 0.14.0, < 1.0 (not installed)
2024-12-23T02:07:44.5092680Z Installing https://luarocks.org/mini.doc-0.14.0-1.src.rock
2024-12-23T02:07:44.5092931Z 
2024-12-23T02:07:44.5093093Z mini.doc 0.14.0-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
2024-12-23T02:07:44.5093846Z mini.doc 0.14.0-1 is now installed in C:\Users\runneradmin\AppData\Roaming\luarocks (license: MIT)
2024-12-23T02:07:44.5094196Z 
2024-12-23T02:07:44.5094373Z mega.vimdoc scm-1 depends on mega.logging >= 1.0.0, < 2.0 (not installed)
2024-12-23T02:07:44.5094816Z Installing https://luarocks.org/mega.logging-1.1.2-1.src.rock
2024-12-23T02:07:44.5095087Z 
2024-12-23T02:07:44.5095260Z mega.logging 1.1.2-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
2024-12-23T02:07:44.5095786Z mega.logging 1.1.2-1 is now installed in C:\Users\runneradmin\AppData\Roaming\luarocks (license: MIT)
2024-12-23T02:07:44.5096142Z 
2024-12-23T02:07:44.5096248Z Missing dependencies for mega.vimdoc scm-1:
2024-12-23T02:07:44.5096515Z    busted >= 2.0, < 3.0 (not installed)
2024-12-23T02:07:44.5096758Z    nlua >= 0.2, < 1.0 (not installed)
2024-12-23T02:07:44.5096917Z 
2024-12-23T02:07:44.5097074Z mega.vimdoc scm-1 depends on busted >= 2.0, < 3.0 (not installed)
2024-12-23T02:07:44.5097460Z Installing https://luarocks.org/busted-2.2.0-1.src.rock
2024-12-23T02:07:44.5097781Z Missing dependencies for busted 2.2.0-1:
2024-12-23T02:07:44.5098040Z    lua_cliargs 3.0 (not installed)
2024-12-23T02:07:44.5098267Z    luasystem >= 0.2.0 (not installed)
2024-12-23T02:07:44.5098504Z    dkjson >= 2.1.0 (not installed)
2024-12-23T02:07:44.5098849Z    say >= 1.4-1 (not installed)
2024-12-23T02:07:44.5099072Z    luassert >= 1.9.0-1 (not installed)
2024-12-23T02:07:44.5099318Z    lua-term >= 0.1 (not installed)
2024-12-23T02:07:44.5099547Z    penlight >= 1.3.2 (not installed)
2024-12-23T02:07:44.5099788Z    mediator_lua >= 1.1.1 (not installed)
2024-12-23T02:07:44.5099964Z 
2024-12-23T02:07:44.5100113Z busted 2.2.0-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
2024-12-23T02:07:44.5100480Z busted 2.2.0-1 depends on lua_cliargs 3.0 (not installed)
2024-12-23T02:07:44.5100806Z Installing https://luarocks.org/lua_cliargs-3.0-2.src.rock
2024-12-23T02:07:44.5101033Z 
2024-12-23T02:07:44.5101180Z lua_cliargs 3.0-2 depends on lua >= 5.1 (5.1-1 provided by VM: success)
2024-12-23T02:07:44.5101757Z lua_cliargs 3.0-2 is now installed in C:\Users\runneradmin\AppData\Roaming\luarocks (license: MIT <http://opensource.org/licenses/MIT>)
2024-12-23T02:07:44.5102177Z 
2024-12-23T02:07:44.5102302Z busted 2.2.0-1 depends on luasystem >= 0.2.0 (not installed)
2024-12-23T02:07:44.5102640Z Installing https://luarocks.org/luasystem-0.4.5-1.src.rock
2024-12-23T02:07:44.5102856Z 
2024-12-23T02:07:44.5102999Z luasystem 0.4.5-1 depends on lua >= 5.1 (5.1-1 provided by VM: success)
2024-12-23T02:07:44.6131008Z ##[error]Process completed with exit code 1.
2024-12-23T02:07:44.6277957Z Post job cleanup.
2024-12-23T02:07:44.8776536Z [command]"C:\Program Files\Git\bin\git.exe" version
2024-12-23T02:07:44.8997098Z git version 2.47.1.windows.1
2024-12-23T02:07:44.9063985Z Temporarily overriding HOME='D:\a\_temp\561d1a34-54be-4060-bd4a-994e42e0569a' before making global git config changes
2024-12-23T02:07:44.9064947Z Adding repository directory to the temporary git global config as a safe directory
2024-12-23T02:07:44.9077079Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\mega.vimdoc\mega.vimdoc
2024-12-23T02:07:44.9323560Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2024-12-23T02:07:44.9558262Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\""
2024-12-23T02:07:45.3713972Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-12-23T02:07:45.3911697Z http.https://github.com/.extraheader
2024-12-23T02:07:45.3949077Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
2024-12-23T02:07:45.4185534Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\""
2024-12-23T02:07:45.8248432Z Cleaning up orphan processes

Has anyone seen this issue in the past? What did you do to fix it?

@Tieske
Copy link
Member

Tieske commented Dec 29, 2024

This has very little info. Can you try to manually install LuaSystem, using a separate luarocks command? then try with the 'verbose' option enabled.

@ColinKennedy
Copy link
Author

ColinKennedy commented Dec 29, 2024

Edit: Actually I think the issue is the workflow. Will check and reply back here.

How is this?

Workflow run

Raw log

The full logs, viewable in pastebin

The exact GitHub workflow step that generated the above log is

    - name: Explicit luasystem install
      run: |
        luarocks --verbose install luasystem --local

This is the full workflow, at the time of writing

name: Test

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
    branches:
    - main
  push:
    branches:
      - main
      - add_windows_unittests

jobs:
  test:
    strategy:
      matrix:
        neovim: [v0.10.0]
        os: ["windows-latest"]
        luaVersion:
        - "5.1"
        - "luajit"
        include:
          - os: "windows-latest"
            toolchain: "msvc"
            luaVersion: "5.1"
          - os: "windows-latest"
            toolchain: "mingw"  # unused, other than for display in the UI
            luaVersion: "luajit"

    runs-on: ${{ matrix.os }}
    name: "OS: ${{ matrix.os }} - Neovim: ${{ matrix.neovim }}"

    steps:
    - uses: actions/checkout@master

    - name: Setup MSVC
      # the 'hishamhm/gh-actions-lua' step requires msvc to build PuC Rio Lua
      # versions on Windows (LuaJIT will be build using MinGW/gcc).
      if: ${{ matrix.toolchain == 'msvc' }}
      uses: ilammy/msvc-dev-cmd@v1

    - uses: leafo/gh-actions-lua@master
      with:
        # Neovim is compiled with LuaJIT so we might as well match. But it
        # doesn't look like we can match it exactly.
        #
        # Reference:
        #    https://github.com/leafo/gh-actions-lua/issues/49#issuecomment-2295071198
        #
        luaVersion: "luajit-openresty"

    - uses: hishamhm/gh-actions-luarocks@v5
      with:
        luarocksVersion: "3.11.0"

    - uses: rhysd/action-setup-vim@v1
      with:
        neovim: true
        version: ${{ matrix.neovim }}

    - name: Explicit luasystem install
      run: |
        luarocks --verbose install luasystem --local

If you need more information please let me know and I'll provide it

@ColinKennedy
Copy link
Author

Update: likely the issue is with luarocks itself. I stripped everything out and it still errors. luarocks/luarocks#1731

Let's close this issue and reopen it if needed later. It doesn't seem to be a problem with luasystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants