Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

clink's installscript not supported fully correctly

Open
#161 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
lua
Domain
cli

Research direction

Start with the root-level test_path.lua and inspect how clink installscripts initializes files in the z.lua installation directory. Move the test/helper file into a subdirectory ignored by clink installscripts, then verify that launching cmd no longer reports the missing z module error.

Written by the indexing model from the issue text.

Description

Hello, if you use clink's new better way to install modules, so: clink installscripts C:\path\to\z.lua\, z.lua works mostly fine, except for one small issue. Every time you launch cmd you see this annoying error at the top:

...cations\Plugins\Windows\System\clink\z.lua\test_path.lua:1: module 'z' not found:
        no field package.preload['z']
        no file 'D:\Backups\Applications\Plugins\Windows\System\clink\clink-completions\modules/z.lua'
        no file 'C:\Program Files (x86)\Lua\5.1\lua\z.luac'
        no file 'C:\Windows\system32\z.dll'
        no file 'C:\Windows\system32\loadall.dll'
        no file '.\z.dll'

Basically what happens is that clink installscripts only accepts dirs not files, so you provide a path which also contains test_path.lua file and that file doesn't work well when it's initialized in clink.

The fix would be to move test_path.lua to a separate directory, e.g. modules or helpers or something, as clink installscripts ignores subdirectories. I'm not sure what the file does though (well, it tests the path, but I don't know under which circumstances, I can't see any references) and why it's in the root of the project.

EDIT: oh, from the commit history I see it's some kind of a test/helper. So moving it shouldn't be any sort of a problem.

Dominant language
Lua
Stars
3.1k
Forks
149
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from skywind3000/z.lua

All issues in skywind3000/z.lua

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.