Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix: do not detect .luarocks/config-5.x.lua and lua_modules as modules | Hisham Muhammad | 2018-08-02 | 1 | -1/+51 |
| | | | | | | | | | | | | | Running luarocks init a second time after deleting the rockspec was mis-detects .luarocks/config-5.x.lua as a module, creating an entry `["luarocks.config-5.3"] = ".luarocks/config-5.3.lua"` in `build.modules`. Same problem happened with modules under `lua_modules`. This excludes `.luarocks` and `lua_modules` from module detection. Includes a regression test. Closes #847. | ||||
* | Do not rewrite path in util.cleanup_path if the desired version is a ↵ | Ryan Hartlage | 2018-08-01 | 1 | -0/+14 |
| | | | | | | | | substring of the version (#868) * Do not rewrite path in util.cleanup_path if the desired version is a substring of the version * Improve test coverage for core.util.cleanup_path | ||||
* | Tests: refactor and add fixtures for the doc tests | George Roman | 2018-07-31 | 2 | -37/+122 |
| | |||||
* | fs: fix rwx_to_number, add negated mask mode | Hisham Muhammad | 2018-07-26 | 1 | -0/+22 |
| | | | | Fixes #856. | ||||
* | Tests: add test_env.run_in_tmp utility function | George Roman | 2018-07-24 | 4 | -265/+217 |
| | |||||
* | Tests: add more unit tests for fun.lua | George Roman | 2018-07-24 | 1 | -0/+57 |
| | |||||
* | fs.copy: skip copying if the source and destination are the same files | George Roman | 2018-07-22 | 1 | -1/+1 |
| | |||||
* | Tests: use more fixtures in the build tests | George Roman | 2018-07-22 | 3 | -53/+101 |
| | |||||
* | fs: make unpack_archive platform-agnostic using specific fs functions | Hisham Muhammad | 2018-07-18 | 2 | -0/+16 |
| | | | | | | | 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. | ||||
* | Tests: tweak dependencies for env=full tests | Hisham Muhammad | 2018-07-18 | 1 | -11/+10 |
| | |||||
* | Tests: support running with the default detected OpenSSL locations | Hisham Muhammad | 2018-07-18 | 4 | -16/+12 |
| | |||||
* | Tests: use fixtures for some build integration tests | George Roman | 2018-07-18 | 1 | -24/+80 |
| | |||||
* | Add general improvements to the fs module | George Roman | 2018-07-16 | 2 | -34/+36 |
| | |||||
* | Update the behavior of fs.set_permissions on Windows | George Roman | 2018-07-16 | 1 | -4/+4 |
| | |||||
* | Tests: add tests for the dynamic commands | George Roman | 2018-07-16 | 1 | -0/+57 |
| | |||||
* | Tests: remove redundant build tests | George Roman | 2018-07-05 | 1 | -43/+0 |
| | |||||
* | Tests: unit tests for build.builtin | George Roman | 2018-07-05 | 1 | -19/+454 |
| | |||||
* | Tests: separate OPENSSL_DIRS into OPENSSL_INCDIR and OPENSSL_LIBDIR | George Roman | 2018-07-05 | 4 | -10/+30 |
| | |||||
* | Experimental Windows cross-compiled binary build | Hisham Muhammad | 2018-07-02 | 1 | -0/+11 |
| | | | | | | | | | | | | 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. | ||||
* | Tests: improve isolation of tests | Hisham Muhammad | 2018-07-01 | 2 | -10/+14 |
| | |||||
* | Tests: remove outdated test | Hisham Muhammad | 2018-07-01 | 1 | -20/+0 |
| | | | | | Remove regression test for #304 because LuaRocks no longer conflates foo and foo.init as the same module. | ||||
* | Tests: remove precompiled header added incorrectly | Hisham Muhammad | 2018-07-01 | 1 | -0/+0 |
| | |||||
* | Let LuaRocks find LUA_LIBDIR and LUA_INCDIR by itself | Hisham Muhammad | 2018-07-01 | 2 | -14/+4 |
| | |||||
* | Tests: config: no need for special-casing Windows | Hisham Muhammad | 2018-07-01 | 2 | -37/+20 |
| | |||||
* | Tests: improve hardcoded defaults | Hisham Muhammad | 2018-07-01 | 1 | -12/+28 |
| | |||||
* | Tests: try some smarter defaults for Windows | Hisham Muhammad | 2018-07-01 | 1 | -3/+6 |
| | |||||
* | Tests: do not run installer on Windows | Hisham Muhammad | 2018-07-01 | 1 | -35/+38 |
| | |||||
* | Tests: speed up downloading rocks reusing HTTP connection | Hisham Muhammad | 2018-07-01 | 1 | -8/+15 |
| | |||||
* | cmd, Tests: ensure versioned directory is tried first | Hisham Muhammad | 2018-07-01 | 1 | -2/+2 |
| | |||||
* | Tests: ensure that tests do not accidentally find a project dir | Hisham Muhammad | 2018-07-01 | 1 | -0/+1 |
| | |||||
* | Tests: minor cleanups | Hisham Muhammad | 2018-07-01 | 2 | -5/+6 |
| | |||||
* | cfg, cmd: major reorganization | Hisham Muhammad | 2018-07-01 | 6 | -35/+44 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `--lua-dir` flag, specifying a prefix for the Lua installation to be used. This reconfigures LuaRocks entirely, including allowing a LuaRocks which is itself running using one Lua 5.x version to manage packages for a different Lua 5.y version. The resulting configuration can be checked with `luarocks config --lua-dir=<path>`. * requiring `luarocks.core.cfg` no longer has side-effects * configuration now needs to be initialized with `cfg.init([lua_data])`, where `lua_data` is a table with the configuration of the VM: * `lua_version` - e.g. `"5.3"` * `luajit_version` - e.g. `"2.1.0-beta3"` * `lua_interpreter` - e.g. `"lua5.3"` * `lua_bindir` - e.g. `"/usr/local/bin"` * `lua_libdir` - e.g. `"/usr/local/lib"` * `lua_incdir` - e.g. `"/usr/local/include/lua-5.3"` * `cfg.init` can be called multiple times, reconfiguring the global state. This is important since `luarocks.loader` now calls it, and the `--lua-dir` command line can override the configuration and reconfigure LuaRocks. * `site_config_*` is no more: LuaRocks is no longer dependent on a properly-written site_config file. Instead, it can *optionally* use `luarocks.core.hardcoded` for hardcoded values, or detect its configuration at runtime, based on OS detection, arg[-1] or command-line flags. * reduction of moving parts in the configuration: * `cfg.platforms` is no longer a globally-visible table; instead, `cfg` provides an API of read-only functions: `is_platform`, `each_platform`, `print_platforms`. * `cfg.*_proxy` options are no longer configured via the config files, but rather via the standard `*_proxy` environment variables. * `"windows"` is now the more general platform name of the Windows family. This is technically a breaking change but I don't expect it to cause problems with real-world rockspecs. * internal code reorganization in `luarocks.cmd` module | ||||
* | fs: make module loading side-effect free, require explicit init() | Hisham Muhammad | 2018-07-01 | 4 | -1/+8 |
| | |||||
* | Update tests README.md | George Roman | 2018-06-26 | 1 | -8/+0 |
| | |||||
* | Tests: test command | George Roman | 2018-06-22 | 1 | -0/+170 |
| | |||||
* | Tests: replace small fixture files with inline content | George Roman | 2018-06-21 | 20 | -151/+269 |
| | |||||
* | Tests: improve the tests for the fs module | George Roman | 2018-06-21 | 1 | -4/+139 |
| | |||||
* | Tests: improve patch.lua tests | George Roman | 2018-06-20 | 5 | -81/+180 |
| | |||||
* | Tests: patch.lua | George Roman | 2018-06-14 | 5 | -0/+151 |
| | |||||
* | Tests: disable customized external_deps_dirs | Hisham Muhammad | 2018-06-14 | 1 | -12/+0 |
| | |||||
* | builtin: if "libraries" is used but "external_dependencies" is not given, ↵ | Hisham Muhammad | 2018-06-14 | 1 | -0/+27 |
| | | | | | | | | autogenerate it The approach is slightly ugly since it adds builtin-specific knowledge to `luarocks.deps`, but I don't think any other build backends will support this behavior any time soon. | ||||
* | builtin: auto-detect modules when build.modules (or build!) is absent | Hisham Muhammad | 2018-06-14 | 2 | -0/+43 |
| | |||||
* | Tests: do not rebuild mock server rocks if already built | Hisham Muhammad | 2018-06-14 | 1 | -5/+20 |
| | |||||
* | Tests: fix fetch tests using the rockspecs module | Hisham Muhammad | 2018-06-14 | 1 | -66/+21 |
| | |||||
* | Include 0% coverage files in the luacov report | George Roman | 2018-06-12 | 1 | -0/+25 |
| | |||||
* | Fix the collecting of coverage data from unit tests | George Roman | 2018-06-12 | 6 | -2/+19 |
| | |||||
* | Move test/README.md to spec/README.md | George Roman | 2018-06-12 | 1 | -0/+66 |
| | |||||
* | General refactor introducing Rockspec and Build.Opts objects | Hisham Muhammad | 2018-06-06 | 3 | -11/+12 |
| | | | | | | | | | | Adds a Rockspec object responsible for constructing all Rockspec tables in the manner of the Queries and Results objects, and a type-checked Build.Opts tables for build options, since the number of attributes passed around was getting out of hand. This allowed a major cleanup in the luarocks.build, luarocks.fetch and luarocks.cmd.write_rockspec modules. | ||||
* | Tests: move is_basic_protocol to dir | Hisham Muhammad | 2018-06-06 | 2 | -11/+19 |
| | |||||
* | build: make "builtin" the default build.type | Hisham Muhammad | 2018-06-06 | 2 | -8/+40 |
| |