diff options
| author | Bruno Thiago <45828157+brunotvs@users.noreply.github.com> | 2026-03-17 12:48:34 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-17 12:48:34 -0300 |
| commit | df425b4a24637797f552245685d7535ad9a56f7c (patch) | |
| tree | 059c47cbd4e58941e97d881904935fbbdc272668 | |
| parent | e4689642f1b72efd221a60fd364efb5ce86eeff5 (diff) | |
| download | luarocks-df425b4a24637797f552245685d7535ad9a56f7c.tar.gz luarocks-df425b4a24637797f552245685d7535ad9a56f7c.tar.bz2 luarocks-df425b4a24637797f552245685d7535ad9a56f7c.zip | |
fix: correctly handling wrap_bin_scripts flag (#1866)
Fixes #1827.
| -rw-r--r-- | src/luarocks/core/cfg.lua | 1 | ||||
| -rw-r--r-- | src/luarocks/repos.lua | 5 | ||||
| -rw-r--r-- | src/luarocks/repos.tl | 5 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index 1c380e1d..a1dbb69f 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua | |||
| @@ -187,6 +187,7 @@ local function make_defaults(lua_version, target_cpu, platforms, home) | |||
| 187 | deps_mode = "one", | 187 | deps_mode = "one", |
| 188 | no_manifest = false, | 188 | no_manifest = false, |
| 189 | check_certificates = false, | 189 | check_certificates = false, |
| 190 | wrap_bin_scripts = true, | ||
| 190 | 191 | ||
| 191 | cache_timeout = 60, | 192 | cache_timeout = 60, |
| 192 | cache_fail_timeout = 86400, | 193 | cache_fail_timeout = 86400, |
diff --git a/src/luarocks/repos.lua b/src/luarocks/repos.lua index e283301c..3898f234 100644 --- a/src/luarocks/repos.lua +++ b/src/luarocks/repos.lua | |||
| @@ -196,9 +196,8 @@ function repos.run_hook(rockspec, hook_name) | |||
| 196 | end | 196 | end |
| 197 | 197 | ||
| 198 | function repos.should_wrap_bin_scripts(rockspec) | 198 | function repos.should_wrap_bin_scripts(rockspec) |
| 199 | 199 | if cfg.wrap_bin_scripts == false then | |
| 200 | if cfg.wrap_bin_scripts then | 200 | return false |
| 201 | return cfg.wrap_bin_scripts | ||
| 202 | end | 201 | end |
| 203 | if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then | 202 | if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then |
| 204 | return false | 203 | return false |
diff --git a/src/luarocks/repos.tl b/src/luarocks/repos.tl index 93c85d9a..883fe4d4 100644 --- a/src/luarocks/repos.tl +++ b/src/luarocks/repos.tl | |||
| @@ -196,9 +196,8 @@ function repos.run_hook(rockspec: Rockspec, hook_name: string): boolean, string | |||
| 196 | end | 196 | end |
| 197 | 197 | ||
| 198 | function repos.should_wrap_bin_scripts(rockspec: Rockspec): boolean | 198 | function repos.should_wrap_bin_scripts(rockspec: Rockspec): boolean |
| 199 | 199 | if cfg.wrap_bin_scripts == false then | |
| 200 | if cfg.wrap_bin_scripts then | 200 | return false |
| 201 | return cfg.wrap_bin_scripts | ||
| 202 | end | 201 | end |
| 203 | if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then | 202 | if rockspec.deploy and rockspec.deploy.wrap_bin_scripts == false then |
| 204 | return false | 203 | return false |
