aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not pin `lua` as a dependency.mainHisham Muhammad2026-04-062-0/+22
| | | | Fixes #1874.
* fix: check if table entry is nil or not (#1867)Bruno Thiago2026-03-171-2/+2
| | | | | | | | | | | | | | | | running ```luarocks config local_by_default``` returns ```Error: Unknown entry local_by_default``` and running ```luarocks config local_by_default true``` writes it as a string to the config file: ```lua local_by_default = "true" ``` Same is true to any bool var set as false. This pr aims to fix this issue.
* fix: correctly handling wrap_bin_scripts flag (#1866)Bruno Thiago2026-03-173-6/+5
| | | Fixes #1827.
* Improve flexibility around vendored librariestobil4sk2026-02-0340-4321/+35
| | | | | | | | | | | | | | | | | | | | | compat53 is vendored since #1757 as it is required to run luarocks with lua 5.1 or 5.2. However, this introduced some issues as the GNUmakefile install rule places these in the same place where `luarocks install compat53` would install them. This means you get conflicts if you install the actual package: ``` Warning: /.../prefix/share/lua/5.1/compat53/init.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/init.lua~ Warning: /.../prefix/share/lua/5.1/compat53/module.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/module.lua~ Warning: /.../prefix/share/lua/5.1/compat53/file_mt.lua is not tracked by this installation of LuaRocks. Moving it to /.../prefix/share/lua/5.1/compat53/file_mt.lua~ ``` It is also not ideal for linux package maintainers to include a vendored package, see: https://github.com/luarocks/luarocks/pull/1757#issuecomment-3409873412. To solve these issues, this patchset makes the following changes: - GNUmakefile now places the compat53 files under `luarocks/vendor/compat53` (which is added internally to the luarocks script's `package.path`). This way a user's installation of compat53 does not interfere at all with luarocks one. - Added `--with-system-compat53` option to configure script for external packaging systems. - Fixed install.bat's logic for deciding whether to vendor compat53, as the current script includes it for every version. install.bat already places luarocks sources outside of LUAPATH, so that part can stay as is. I've also inverted the version check to avoid the need for future patches like: #1850.
* assert: skip compat53 itself from the stacktraceHisham Muhammad2026-02-011-2/+2
|
* fix: use LuaFileSystem in the system only if its version is 1.6.0 or newer. ↵Luau Project2026-01-281-0/+19
| | | | (#1825)
* Release 3.13.0Hisham Muhammad2025-12-281-1/+1
|
* improve header matching for Lua 5.5+Pierre Chapuis2025-12-262-10/+10
|
* support Lua 5.5 in install.bat and win32 fs modulePierre Chapuis2025-12-261-1/+2
| | | | Co-authored-by: luau-project <luau.project@gmail.com>
* support Lua 5.5Pierre Chapuis2025-12-2611-11/+42
|
* fix: deps.check_lua_libdir() should read liblua in binary modeSewbacca2025-07-272-2/+2
|
* Release 3.12.2v3.12.2Hisham Muhammad2025-06-271-1/+1
|
* fix: create cache_dir when local_cache existsluau-project2025-06-252-3/+11
|
* fetch: update cachefile and checkfile on temp local_cacheluau-project2025-06-251-1/+3
|
* Release 3.12.1Hisham Muhammad2025-06-171-1/+1
|
* rockspec: re-add deprecated function type().Hisham Muhammad2025-06-172-2/+30
| | | | | | | | | | Removing this broke the behavior of some luarocks.build plugins. LuaRocks does not have a stable public API, but since this function was returned as part of the function signature, we'll revert this as a deprecated function, to be removed in LuaRocks 4.0. Closes #1800.
* Release 3.12.0Hisham Muhammad2025-06-051-1/+1
|
* feat: allow loading json manifestbzp20102025-06-037-5/+87
|
* fix: avoid overwriting CMake variables from rockspecRenato Maia2025-05-192-10/+0
|
* feat: add build vars. for rockspecs with the dir. of its deps.Renato Maia2025-05-192-6/+12
| | | | | | | Rockspecs can access the directory of its dependencies using variables in the format 'foo_ROCKDIR' where 'foo' is the name of a dependency. This is used to be able to access files of the rock like 'conf', 'docs' and more.
* feat: add LUA_VERSION build variable for rockspecsRenato Maia2025-05-194-3/+15
|
* updates for latest Teal (#1796)Hisham Muhammad2025-05-176-28/+28
|
* fix(cygwin): external_deps_patterns and runtime_external_deps_patterns (#1782)Luau2025-04-141-1/+12
|
* fs.unix: only create wrapper for lua scripts (#1738)wzy2025-04-021-2/+3
|
* Add vendored lua compat53 v0.14.4Tobiasz Laskowski2025-02-243-0/+1290
|
* fix: allow Lua C modules to be uninstalled on MSYS2 (#1756)Luau2025-02-241-1/+3
| | | | | | | | | | | | | | | | | | | | | Fixes #1755. Changes: * the idea applied as a fix was mirrored from the changes of #1616, by setting ``` defaults.fs_use_modules = false ``` in a suitable place for MSYS2. * the line ``` if platforms.windows and not platforms.msys2_mingw_w64 and hardcoded.WIN_TOOLS then ``` is meant to follow a MSYS2 patch https://github.com/msys2/MINGW-packages/blob/343eeab4f185847981c6b644d775ee98717b6231/mingw-w64-lua-luarocks/0001-luarocks_msys2_mingw_w64.patch#L57 that fixes previous issues for them.
* fix: override default C compiler to cc.exe on MSYS2 (#1754)Luau2025-02-241-0/+6
| | | | | | | | | | | | | | | | | ## Description Fixes #1753. Changes: 1. on each MSYS2 MinGW-w64 environment, there is a `cc.exe` that points to the default C compiler for the environment. 2. the line ```lua defaults.variables.PWD = "cd" ``` is meant to follow a MSYS2 patch ( https://github.com/msys2/MINGW-packages/blob/5fd4997c2508f0949366513f0a2dd4347f9c4e77/mingw-w64-lua-luarocks/0001-luarocks_msys2_mingw_w64.patch#L48 ) that fixes previous issues for them.
* core.path: more thorough error checkingHisham Muhammad2025-02-212-2/+20
|
* update generated codeHisham Muhammad2025-01-1520-20/+20
|
* fix: interfaces cannot contain record definitionsHisham Muhammad2025-01-151-3/+3
|
* fix: Fix upload command to include the src.rock file as a second parameterLüchinger Dominic2025-01-052-2/+2
|
* fix: add missing type variableHisham Muhammad2025-01-031-1/+1
| | | | See https://github.com/teal-language/tl/pull/890#issuecomment-2569388264
* rockspec: make order type more lenientHisham Muhammad2025-01-031-1/+1
| | | | See https://github.com/teal-language/tl/pull/890#issuecomment-2569388264
* fix: catch some unused variablesHisham Muhammad2025-01-036-29/+43
| | | | Thanks to @euclidianAce's work at https://github.com/teal-language/tl/pull/869
* chore: update autogenerated module preamblesHisham Muhammad2025-01-0333-33/+33
|
* fs: more consistent function signaturesHisham Muhammad2024-10-213-13/+18
|
* fs: do dynamic requires in a Cyan-friendly wayHisham Muhammad2024-10-211-7/+9
| | | | | We avoid doing a plain require() with a literal module name, so that Cyan doesn't detect this as a circular dependency.
* Teal: make luarocks.fs not dependent on luarocks.utilHisham Muhammad2024-10-215-48/+66
| | | | Break circular dependency detected by Cyan
* Teal: make schedule_function genericHisham Muhammad2024-10-212-8/+8
|
* Teal: fixed all warningsHisham Muhammad2024-10-2177-369/+464
| | | | Also addressed/removed all `--!` comments except for the ones that should stay.
* tools.patch: generate LuaHisham Muhammad2024-10-211-10/+13
|
* tools.patch: fix test behaviors using luarocks.fsHisham Muhammad2024-10-211-21/+15
|
* deps: fix: re-enable constraint check for no_upgrade flagHisham Muhammad2024-10-212-16/+16
|
* deplocks: simplify typesHisham Muhammad2024-10-218-77/+81
|
* repos: simplify logic to avoid cast, consistent callback returnsHisham Muhammad2024-10-214-31/+47
|
* fs.download: get consistent return valuesV1K1NGbg2024-10-212-8/+10
|
* Teal: add generated modulesHisham Muhammad2024-10-2189-0/+16933
|
* Teal: convert luarocks.cmdV1K1NGbg2024-10-211-59/+85
|
* Teal: convert luarocks.deplocksV1K1NGbg2024-10-211-19/+24
|
* Teal: convert luarocks.removeV1K1NGbg2024-10-211-10/+15
|