aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2026-06-27 22:26:21 +0200
committerHisham Muhammad <hisham@gobolinux.org>2026-07-11 19:17:17 -0300
commitb950459b4aff01a521b519f79bfd0a1eb3066418 (patch)
tree951464e3c996102aa1cdc1cc6acefdf16f9b2ce3
parent324eda29177b6a6811c75480928384b9ff83f04f (diff)
downloadluarocks-b950459b4aff01a521b519f79bfd0a1eb3066418.tar.gz
luarocks-b950459b4aff01a521b519f79bfd0a1eb3066418.tar.bz2
luarocks-b950459b4aff01a521b519f79bfd0a1eb3066418.zip
Fix typos discovered by codespell
-rw-r--r--CHANGELOG.md4
-rw-r--r--docs/config_file_format.md4
-rw-r--r--docs/creating_a_makefile_that_plays_nice_with_luarocks.md2
-rw-r--r--docs/installation_instructions_for_windows.md4
-rw-r--r--docs/paths_and_external_dependencies.md4
-rw-r--r--spec/unit/rockspecs_spec.lua2
-rw-r--r--src/luarocks/cmd.tl2
-rw-r--r--src/luarocks/cmd/new_version.tl2
-rw-r--r--src/luarocks/core/cfg.d.tl2
-rw-r--r--src/luarocks/core/cfg.lua2
-rw-r--r--src/luarocks/core/util.tl2
-rw-r--r--src/luarocks/deps.tl2
-rw-r--r--src/luarocks/search.tl2
13 files changed, 17 insertions, 17 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 987a0d4e..ce0666f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -506,7 +506,7 @@ package.cpath as well
506 506
507> Released 06/Jun/2019 507> Released 06/Jun/2019
508 508
509This is another bugfix release, that incldes a couple of fixes, 509This is another bugfix release, that includes a couple of fixes,
510including better Lua detection, and fixes specific to MacOS and 510including better Lua detection, and fixes specific to MacOS and
511FreeBSD. 511FreeBSD.
512 512
@@ -829,7 +829,7 @@ overhauled, making use of LuaRocks 3 features to greatly simplify them:
829 in preparation for a stable public API. 829 in preparation for a stable public API.
830* Likewise, modules representing `luarocks-admin` commands were moved into the 830* Likewise, modules representing `luarocks-admin` commands were moved into the
831 `luarocks.admin.cmd` namespace. 831 `luarocks.admin.cmd` namespace.
832* New internal objects for representing interaction with the repostories: 832* New internal objects for representing interaction with the repositories:
833 `luarocks.queries` and `luarocks.results` 833 `luarocks.queries` and `luarocks.results`
834* Type checking rules of file formats were moved into the `luarocks.type` namespace. 834* Type checking rules of file formats were moved into the `luarocks.type` namespace.
835 835
diff --git a/docs/config_file_format.md b/docs/config_file_format.md
index 3cbe5deb..c7391c08 100644
--- a/docs/config_file_format.md
+++ b/docs/config_file_format.md
@@ -52,7 +52,7 @@ order) for a user config file:
52* `external_deps_subdirs` (table with string keys and string values) - 52* `external_deps_subdirs` (table with string keys and string values) -
53 Subdirectories to be used in conjunction with external_deps_dirs. Specifies 53 Subdirectories to be used in conjunction with external_deps_dirs. Specifies
54 where to look for specific types external dependencies. This can be 54 where to look for specific types external dependencies. This can be
55 overriden, for example, on Linux distributions which feature multiarch 55 overridden, for example, on Linux distributions which feature multiarch
56 libraries and libraries are no longer in the "lib" subdir. Default is { bin 56 libraries and libraries are no longer in the "lib" subdir. Default is { bin
57 = "bin", lib = "lib", include = "include" }. 57 = "bin", lib = "lib", include = "include" }.
58 58
@@ -216,7 +216,7 @@ To test this, add a line `dump_env()` to your config file and execute
216 variables to ensure Lua modules are found. If set to false, scripts 216 variables to ensure Lua modules are found. If set to false, scripts
217 installed at bin/ are copied directly, and no wrappers are generated. 217 installed at bin/ are copied directly, and no wrappers are generated.
218 218
219* `use_extensions` (boolean) - If specified, rockspec format verison 1.1 is 219* `use_extensions` (boolean) - If specified, rockspec format version 1.1 is
220 enabled, adding the deploy.wrap_bin_scripts option to the rockspec format, 220 enabled, adding the deploy.wrap_bin_scripts option to the rockspec format,
221 which acts like the wrap_bin_scripts option above, in a rock by rock basis. 221 which acts like the wrap_bin_scripts option above, in a rock by rock basis.
222 222
diff --git a/docs/creating_a_makefile_that_plays_nice_with_luarocks.md b/docs/creating_a_makefile_that_plays_nice_with_luarocks.md
index a6187659..0caeeacb 100644
--- a/docs/creating_a_makefile_that_plays_nice_with_luarocks.md
+++ b/docs/creating_a_makefile_that_plays_nice_with_luarocks.md
@@ -117,7 +117,7 @@ where you can store configuration or other data for your module. Your code
117must be made aware of these paths in order to use them. If you use the 117must be made aware of these paths in order to use them. If you use the
118`copy_directories` entry in the build section of your rockspec, 118`copy_directories` entry in the build section of your rockspec,
119then what is mentioned there is copied to $(PREFIX) (i.e. a directory doc 119then what is mentioned there is copied to $(PREFIX) (i.e. a directory doc
120will be available unter $(PREFIX)/doc). If you copy directories in your 120will be available under $(PREFIX)/doc). If you copy directories in your
121`install` Makefile rule, you should do the same. 121`install` Makefile rule, you should do the same.
122 122
123Now, if your Makefile is meant to be used standalone as well, which it 123Now, if your Makefile is meant to be used standalone as well, which it
diff --git a/docs/installation_instructions_for_windows.md b/docs/installation_instructions_for_windows.md
index f362ec5a..c8bd6733 100644
--- a/docs/installation_instructions_for_windows.md
+++ b/docs/installation_instructions_for_windows.md
@@ -37,7 +37,7 @@ MSVC compiler, `cl`, are set.
37 37
38The default settings are suitable for installing LuaRocks globally 38The default settings are suitable for installing LuaRocks globally
39in your system while allowing both system-wide and per-user sets of rocks. 39in your system while allowing both system-wide and per-user sets of rocks.
40Non-priviledged accounts will be able to install their own rocks in their 40Non-privileged accounts will be able to install their own rocks in their
41%APPDATA% directory, and administrator accounts can install rocks that 41%APPDATA% directory, and administrator accounts can install rocks that
42will be available for everyone. 42will be available for everyone.
43 43
@@ -87,7 +87,7 @@ Other options:
87| /FORCECONFIG | Use a single config location. Do not use the LUAROCKS_CONFIG variable or the user's home directory. Useful to avoid conflicts when LuaRocks is embedded | 87| /FORCECONFIG | Use a single config location. Do not use the LUAROCKS_CONFIG variable or the user's home directory. Useful to avoid conflicts when LuaRocks is embedded |
88| /F | Force. Remove installation directory if it already exists. | 88| /F | Force. Remove installation directory if it already exists. |
89| /NOREG | Do not load registry info to register '.rockspec' extension with LuaRocks commands (right-click). | 89| /NOREG | Do not load registry info to register '.rockspec' extension with LuaRocks commands (right-click). |
90| /NOADMIN | The installer requires admin priviledges. If not available it will elevate a new process. Use this switch to prevent elevation, but make sure the destination paths are all accessible for the current user. | 90| /NOADMIN | The installer requires admin privileges. If not available it will elevate a new process. Use this switch to prevent elevation, but make sure the destination paths are all accessible for the current user. |
91| /Q | Do not prompt for confirmation of settings | 91| /Q | Do not prompt for confirmation of settings |
92 92
93After installation, a default config file called config.lua will be installed at the directory defined by /CONFIG. For further configuration of LuaRocks paths, see the [Config file format](config_file_format.md). For more information on the structure of rocks trees see [rocks repositories](rocks_repositories.md). 93After installation, a default config file called config.lua will be installed at the directory defined by /CONFIG. For further configuration of LuaRocks paths, see the [Config file format](config_file_format.md). For more information on the structure of rocks trees see [rocks repositories](rocks_repositories.md).
diff --git a/docs/paths_and_external_dependencies.md b/docs/paths_and_external_dependencies.md
index c7a59408..5db13d9d 100644
--- a/docs/paths_and_external_dependencies.md
+++ b/docs/paths_and_external_dependencies.md
@@ -35,9 +35,9 @@ itself is considered a special external dependency.
35 35
36These path variables are set in the global `variables` table defined in the 36These path variables are set in the global `variables` table defined in the
37[config file](config_file_format.md). Their values are populated automatically 37[config file](config_file_format.md). Their values are populated automatically
38by LuaRocks, but can be overriden by the user (either by setting them directly 38by LuaRocks, but can be overridden by the user (either by setting them directly
39in the config file, or by passing them through the "luarocks" command line). 39in the config file, or by passing them through the "luarocks" command line).
40 40
41The `variables` table always contains entries for `LUA_BINDIR`, `LUA_INCDIR` 41The `variables` table always contains entries for `LUA_BINDIR`, `LUA_INCDIR`
42and `LUA_LIBDIR`. Like the other external dependency variables, these can be 42and `LUA_LIBDIR`. Like the other external dependency variables, these can be
43overriden in the LuaRocks config file or in the command line. \ No newline at end of file 43overridden in the LuaRocks config file or in the command line. \ No newline at end of file
diff --git a/spec/unit/rockspecs_spec.lua b/spec/unit/rockspecs_spec.lua
index 2357a2a1..71da25da 100644
--- a/spec/unit/rockspecs_spec.lua
+++ b/spec/unit/rockspecs_spec.lua
@@ -34,7 +34,7 @@ describe("luarocks.rockspecs #unit", function()
34 }) 34 })
35 end) 35 end)
36 36
37 it("does not add a build dependency for non-vendored build type if it's already ther", function() 37 it("does not add a build dependency for non-vendored build type if it's already there", function()
38 local filename = "test-1.0-1.rockspec" 38 local filename = "test-1.0-1.rockspec"
39 local rockspec = { 39 local rockspec = {
40 package = "test", 40 package = "test",
diff --git a/src/luarocks/cmd.tl b/src/luarocks/cmd.tl
index 3f743bb6..f71814a1 100644
--- a/src/luarocks/cmd.tl
+++ b/src/luarocks/cmd.tl
@@ -681,7 +681,7 @@ function cmd.run_command(description: string, commands: {string: string}, extern
681 -- Fallback producing _some_ Lua configuration based on the running interpreter. 681 -- Fallback producing _some_ Lua configuration based on the running interpreter.
682 -- Most likely won't produce correct results when running from the standalone binary, 682 -- Most likely won't produce correct results when running from the standalone binary,
683 -- so eventually we need to drop this and outright fail if Lua is not found 683 -- so eventually we need to drop this and outright fail if Lua is not found
684 -- or explictly configured 684 -- or explicitly configured
685 if not cfg.variables.LUA then 685 if not cfg.variables.LUA then
686 local first_arg = get_first_arg() 686 local first_arg = get_first_arg()
687 local bin_dir = dir.dir_name(fs.absolute_name(first_arg)) 687 local bin_dir = dir.dir_name(fs.absolute_name(first_arg))
diff --git a/src/luarocks/cmd/new_version.tl b/src/luarocks/cmd/new_version.tl
index bf66b72c..2cda3ce0 100644
--- a/src/luarocks/cmd/new_version.tl
+++ b/src/luarocks/cmd/new_version.tl
@@ -76,7 +76,7 @@ end
76 76
77-- Try to download source file using URL from a rockspec. 77-- Try to download source file using URL from a rockspec.
78-- If it specified MD5, update it. 78-- If it specified MD5, update it.
79-- @return true if no errors ocurred 79-- @return true if no errors occurred
80-- @return an error message in case of errors 80-- @return an error message in case of errors
81-- @return if no errors, a true boolean if the MD5 changed. 81-- @return if no errors, a true boolean if the MD5 changed.
82local function check_url_and_update_md5(out_rs: Rockspec, invalid_is_error?: boolean): boolean, string, boolean 82local function check_url_and_update_md5(out_rs: Rockspec, invalid_is_error?: boolean): boolean, string, boolean
diff --git a/src/luarocks/core/cfg.d.tl b/src/luarocks/core/cfg.d.tl
index e3305580..7cd32e24 100644
--- a/src/luarocks/core/cfg.d.tl
+++ b/src/luarocks/core/cfg.d.tl
@@ -26,7 +26,7 @@ local record cfg
26 record cache 26 record cache
27 luajit_version_checked: boolean 27 luajit_version_checked: boolean
28 luajit_version: string 28 luajit_version: string
29 rocks_provided: {string: string} --? right type? infered from src/luarocks/util 29 rocks_provided: {string: string} --? right type? inferred from src/luarocks/util
30 end 30 end
31 31
32 variables: {string: string} 32 variables: {string: string}
diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
index a1dbb69f..200383f9 100644
--- a/src/luarocks/core/cfg.lua
+++ b/src/luarocks/core/cfg.lua
@@ -435,7 +435,7 @@ local function make_defaults(lua_version, target_cpu, platforms, home)
435 end 435 end
436 436
437 if platforms.msys then 437 if platforms.msys then
438 -- msys is basically cygwin made out of mingw, meaning the subsytem is unixish 438 -- msys is basically cygwin made out of mingw, meaning the subsystem is unixish
439 -- enough, yet we can freely mix with native win32 439 -- enough, yet we can freely mix with native win32
440 defaults.external_deps_patterns = { 440 defaults.external_deps_patterns = {
441 bin = { "?.exe", "?.bat", "?" }, 441 bin = { "?.exe", "?.bat", "?" },
diff --git a/src/luarocks/core/util.tl b/src/luarocks/core/util.tl
index 1a6fefca..85e3b23e 100644
--- a/src/luarocks/core/util.tl
+++ b/src/luarocks/core/util.tl
@@ -40,7 +40,7 @@ end
40-- (in the case in which indent is composed by spaces or "--"). 40-- (in the case in which indent is composed by spaces or "--").
41-- Userdata and function keys and values are shown as strings, 41-- Userdata and function keys and values are shown as strings,
42-- which logically are exactly not equivalent to the original code. 42-- which logically are exactly not equivalent to the original code.
43-- This routine can serve for pretty formating tables with 43-- This routine can serve for pretty formatting tables with
44-- proper indentations, apart from printing them: 44-- proper indentations, apart from printing them:
45-- io.write(table.show(t, "t")) -- a typical use 45-- io.write(table.show(t, "t")) -- a typical use
46-- Written by Julio Manuel Fernandez-Diaz, 46-- Written by Julio Manuel Fernandez-Diaz,
diff --git a/src/luarocks/deps.tl b/src/luarocks/deps.tl
index 55006a95..db577c8b 100644
--- a/src/luarocks/deps.tl
+++ b/src/luarocks/deps.tl
@@ -173,7 +173,7 @@ local function rock_status(dep: Query, get_versions: function(Query): {string},
173 return installed and installed.." "..installation_type..": success" or "not installed" 173 return installed and installed.." "..installation_type..": success" or "not installed"
174end 174end
175 175
176--- Check depenendencies of a package and report any missing ones. 176--- Check dependencies of a package and report any missing ones.
177-- @param name string: package name. 177-- @param name string: package name.
178-- @param version string: package version. 178-- @param version string: package version.
179-- @param dependencies table: array of dependencies. 179-- @param dependencies table: array of dependencies.
diff --git a/src/luarocks/search.tl b/src/luarocks/search.tl
index 31c42ee9..b3d300ac 100644
--- a/src/luarocks/search.tl
+++ b/src/luarocks/search.tl
@@ -176,7 +176,7 @@ end
176 176
177--- Get the URL for the latest in a set of versions. 177--- Get the URL for the latest in a set of versions.
178-- @param name string: The package name to be used in the URL. 178-- @param name string: The package name to be used in the URL.
179-- @param versions table: An array of version informations, as stored 179-- @param versions table: An array of version information, as stored
180-- in search result trees. 180-- in search result trees.
181-- @return string or nil: the URL for the latest version if one could 181-- @return string or nil: the URL for the latest version if one could
182-- be picked, or nil. 182-- be picked, or nil.