summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* forward error messages from fs.unzipHisham Muhammad2018-07-182-4/+4
|
* fs: make unpack_archive platform-agnostic using specific fs functionsHisham Muhammad2018-07-184-190/+488
| | | | | | | Use luarocks.tools.tar for handling tar files, and add platform-specific functions fs.zip, fs.unzip, fs.bunzip2, fs.gunzip, giving them native implementations using Lua modules or alternative implementations using third-party tools.
* fs: support both table and number in set_timeHisham Muhammad2018-07-183-1/+32
|
* fs: add filter_fileHisham Muhammad2018-07-181-0/+30
|
* tar: compatibility improvement tweaksHisham Muhammad2018-07-181-24/+45
|
* cmd: only detect sysconfdir on UnixHisham Muhammad2018-07-181-3/+3
| | | | On the Windows single-binary this produces a weird "src/" path.
* cmd: fix displayed program name in single-binaryHisham Muhammad2018-07-181-1/+1
|
* cmd: portability fixes, don't check LuaJIT for Lua > 5.1Hisham Muhammad2018-07-181-3/+12
|
* cmd: support --lua-version without --lua-dirHisham Muhammad2018-07-181-1/+9
|
* cfg: detect Visual Studio Developer ConsoleHisham Muhammad2018-07-181-1/+8
|
* fun: add fun.partial and fun.flipHisham Muhammad2018-07-181-0/+37
|
* write_rockspec: detect ISC licenseHisham Muhammad2018-07-181-5/+11
|
* write_rockspec: detect git+ssh and hg+sshHisham Muhammad2018-07-181-4/+13
|
* build.command: don't export LD or CFLAGSHisham Muhammad2018-07-181-2/+2
| | | | | This avoids breakage with existing rockspecs that don't expect it, as seen when building the single-binary.
* Add general improvements to the fs moduleGeorge Roman2018-07-163-10/+25
|
* Update the behavior of fs.set_permissions on WindowsGeorge Roman2018-07-161-16/+41
|
* cfg: detect sysconfdir based on location of sourcesHisham Muhammad2018-07-101-20/+39
| | | | | | | | | | This will help a stand-alone luarocks.loader find the system config file without any environment variable or hardcoded value, in most common situations (i.e. unless a non-standard sysconfdir was given during installation -- but then a stand-alone luarocks.loader loaded by a third-party program probably shouldn't assume non-standard configurations anyway; and when they do they should set up their environment accordingly, preloading luarocks.core.hardcoded.)
* luarocks, luarocks-admin: load cfg first, for luarocks.loaderHisham Muhammad2018-07-102-0/+6
| | | | | Load luarocks.core.cfg first so that luarocks.loader knows it is running inside LuaRocks.
* md5: fix version checks of toolsHisham Muhammad2018-07-041-2/+2
|
* help: report LuaJIT versionHisham Muhammad2018-07-041-0/+3
|
* builtin: detect 'lib' as a directory of Lua sources as wellHisham Muhammad2018-07-041-1/+1
|
* deps: nicer message with Lua headers are not foundHisham Muhammad2018-07-041-0/+5
|
* config file: do not assume 'variable' table exists (for compat with LR2)Hisham Muhammad2018-07-041-3/+4
| | | | | | This change results in a default config that works in both LuaRocks 2 and 3. We do not promise a compatible configuration format, but it's nice to avoid unnecessary breakage if we can.
* cmd: dynamically load additional external commandsThijs Schreijer2018-07-044-10/+57
| | | | | | | Instead of a fixed list of commands, a dynamic list of modules residing within the `luarocks.cmd.external.<cmd_name>` in the Lua path will be dynamically added. This allows extending LuaRocks with additional commands. Same for `luarocks.admin.cmd.external.<cmd_name>`.
* fs: fix permissions when creating directories and wrappersHisham Muhammad2018-07-032-2/+2
| | | | | Newly created directories and wrappers need to be executable/traversable by all.
* Experimental Windows cross-compiled binary buildHisham Muhammad2018-07-022-1/+14
| | | | | | | | | | | | This commit consolidates the work that has been ongoing over the last few weeks in producing the single-binary builds of LuaRocks based on the new distribution model described in https://github.com/luarocks/luarocks/wiki/Project:-LuaRocks-new-distribution-model The single-binary build is in a good shape for Linux, it's a work-in-progress for Windows (binaries do build, but some work on the dependencies is still necessary), and is untested in macOS.
* test.busted: luacheck fixHisham Muhammad2018-07-011-2/+3
|
* Do we want LuaRocks itself to use whatever tree is in use?Hisham Muhammad2018-07-011-0/+7
|
* test: remove incorrect commentHisham Muhammad2018-07-011-8/+0
|
* rockspec: fix handling of rockspec_format versionsHisham Muhammad2018-07-012-31/+56
| | | | | | | | | | * luarocks/type_check.lua: * fix expansion of platforms * luarocks/type/rockspec.lua: * when a version fails checking, try with a later version to produce a hint in the error message. See #823.
* fun: add reverse_in and sort_inHisham Muhammad2018-07-011-0/+15
| | | | | * reverse_in: reverse table in-place * sort_in: sort table in-place
* manifest: add 'namespace' to the type checkerHisham Muhammad2018-07-011-3/+4
|
* cmd: process --version only after cfg.initHisham Muhammad2018-07-011-6/+8
|
* path: output PATH by default, change --bin to --no-binHisham Muhammad2018-07-012-2/+3
|
* path, loader: handle coexisting foo.bar and foo.bar.init modulesHisham Muhammad2018-07-012-17/+24
| | | | | | | | LuaRocks used to conflate in its manifest two modules whose names only differed by ".init" (e.g. "foo.bar" and "foo.bar.init"). With this change, `path.path_to_modules` treats them as distinct modules, and `luarocks.loader` handles them correctly (given `require("foo.bar")`, it looks for `foo.bar` first and then `foo.bar.init` next).
* write_rockspec: cleanup all rockspec internal fieldsHisham Muhammad2018-07-011-0/+10
|
* wrapper scripts: honor deps_mode when wrapping scriptsHisham Muhammad2018-07-016-16/+36
|
* build, write_rockspec: autodetect scripts to install as wellHisham Muhammad2018-07-012-7/+20
|
* Let LuaRocks find LUA_LIBDIR and LUA_INCDIR by itselfHisham Muhammad2018-07-015-45/+44
|
* mingw32: do not link Lua staticallyHisham Muhammad2018-07-012-0/+17
|
* Windows: disable fs modules for nowHisham Muhammad2018-07-011-0/+1
|
* fs: do not cache cfg.variablesHisham Muhammad2018-07-013-25/+21
| | | | | | | Avoid relying on the order that cfg and fs are required. This is not strictly required in regular operation, but it allows us to mock cfg and use fs.
* build: resolve LUALIB at runtimeHisham Muhammad2018-07-013-138/+178
| | | | | | Move logic from install.bat for resolving LUALIB (the name of the Lua library) reusing the standard LuaRocks functionality for finding external dependency libraries.
* Windows: support hardcoded.WIN_TOOLS for tool pathsHisham Muhammad2018-07-011-0/+8
|
* cfg: add / to external_deps_dirs, because some Linux libraries still live in ↵Hisham Muhammad2018-07-011-1/+1
| | | | /lib
* config: Lua 5.1/5.2 compatibility fixHisham Muhammad2018-07-011-1/+3
|
* fs: add LuaPosix-version of set_permissionsHisham Muhammad2018-07-013-51/+92
| | | | | | | | This implemention the ugly side-effect of "exposing" some Unix-specific utility functions to the public API, so they can be shared by `luarocks.fs.lua` and `luarocks.fs.unix.tools`. I named those functions `_unix_*` (with a Python-style `_` at the beginning) to clarify that they should not be used publicly.
* fs.lua: add a LuaPosix-independent version of make_temp_dirHisham Muhammad2018-07-011-0/+18
| | | | This version can run on Windows using lfs alone.
* manif: fix loading rock manifest from the correct repoHisham Muhammad2018-07-011-1/+1
| | | | | get_providing_file was always loading the rock_manifest from the default repo.
* fs: math.randomseed only onceHisham Muhammad2018-07-013-4/+2
|