aboutsummaryrefslogtreecommitdiff
path: root/spec/util/git_repo.lua (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-07-18write_rockspec: detect git+ssh and hg+sshHisham Muhammad1-4/+13
2018-07-18build.command: don't export LD or CFLAGSHisham Muhammad1-2/+2
This avoids breakage with existing rockspecs that don't expect it, as seen when building the single-binary.
2018-07-18Tests: use fixtures for some build integration testsGeorge Roman1-24/+80
2018-07-18Reorder Appveyor testsGeorge Roman1-24/+25
2018-07-16Add general improvements to the fs moduleGeorge Roman5-44/+61
2018-07-16Update the behavior of fs.set_permissions on WindowsGeorge Roman2-20/+45
2018-07-16Tests: add tests for the dynamic commandsGeorge Roman1-0/+57
2018-07-10Use $(CURDIR) instead of $(PWD) in MakefilesPeter Melnichenko2-7/+7
$(CURDIR) is built-in and is guaranteed to always work. $(PWD) is inherited from the shell and may be incorrect or missing. In particular, it is invalid if make is run by some program that changes current directory prior to the execution.
2018-07-10cfg: detect sysconfdir based on location of sourcesHisham Muhammad1-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.)
2018-07-10luarocks, luarocks-admin: load cfg first, for luarocks.loaderHisham Muhammad2-0/+6
Load luarocks.core.cfg first so that luarocks.loader knows it is running inside LuaRocks.
2018-07-10configure: add --with-lua-interpreter optionHisham Muhammad1-14/+26
Support using any interpreter name, even if it doesn't start with 'lua'.
2018-07-05Tests: remove redundant build testsGeorge Roman1-43/+0
2018-07-05Tests: unit tests for build.builtinGeorge Roman1-19/+454
2018-07-05Tests: separate OPENSSL_DIRS into OPENSSL_INCDIR and OPENSSL_LIBDIRGeorge Roman4-10/+30
2018-07-05README: clearer installation instructionsHisham Muhammad1-7/+10
2018-07-04md5: fix version checks of toolsHisham Muhammad1-2/+2
2018-07-04help: report LuaJIT versionHisham Muhammad1-0/+3
2018-07-04builtin: detect 'lib' as a directory of Lua sources as wellHisham Muhammad1-1/+1
2018-07-04deps: nicer message with Lua headers are not foundHisham Muhammad1-0/+5
2018-07-04binary: derive library search paths; minor Windows fixHisham Muhammad2-3/+2
2018-07-04config file: do not assume 'variable' table exists (for compat with LR2)Hisham Muhammad2-7/+10
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.
2018-07-04configure: check presence of lua.hHisham Muhammad1-6/+67
Verification of the Lua include path happens at LuaRocks runtime, but we also perform it here just so that the user gets an early failure if they try to install LuaRocks with the Lua interpreter package but not the "development files" that many Linux distros ship separately. We also include a --disable-incdir-check flag for specialized scenarios: if you do not wish to use "luarocks build", (e.g. when only deploying binary packages) you do not need lua.h installed. This flag skips the check for lua.h in "configure".
2018-07-04cmd: dynamically load additional external commandsThijs Schreijer4-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>`.
2018-07-03fs: fix permissions when creating directories and wrappersHisham Muhammad2-2/+2
Newly created directories and wrappers need to be executable/traversable by all.
2018-07-02ChangeLog: formatting tweaksHisham Muhammad1-13/+13
2018-07-02Makefile: minor improvement to wrapper scriptHisham Muhammad1-2/+2
2018-07-02Docs: updated Changelog for LuaRocks 3.0Hisham Muhammad1-52/+151
2018-07-02Experimental Windows cross-compiled binary buildHisham Muhammad9-63/+264
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.
2018-07-01test.busted: luacheck fixHisham Muhammad1-2/+3
2018-07-01Do we want LuaRocks itself to use whatever tree is in use?Hisham Muhammad1-0/+7
2018-07-01test: remove incorrect commentHisham Muhammad1-8/+0
2018-07-01Tests: improve isolation of testsHisham Muhammad2-10/+14
2018-07-01rockspec: fix handling of rockspec_format versionsHisham Muhammad2-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.
2018-07-01fun: add reverse_in and sort_inHisham Muhammad1-0/+15
* reverse_in: reverse table in-place * sort_in: sort table in-place
2018-07-01Tests: remove outdated testHisham Muhammad1-20/+0
Remove regression test for #304 because LuaRocks no longer conflates foo and foo.init as the same module.
2018-07-01manifest: add 'namespace' to the type checkerHisham Muhammad1-3/+4
2018-07-01cmd: process --version only after cfg.initHisham Muhammad1-6/+8
2018-07-01Tests: remove precompiled header added incorrectlyHisham Muhammad1-0/+0
2018-07-01Unix: new build systemHisham Muhammad13-596/+1213
* Reworked configure script * Now passes shellcheck * New Makefile for Unix * Simplified `make` and `make install` targets * Simplified `make bootstrap` target * New targets `make binary` and `make install-binary` build and install an all-in-one binary of LuaRocks
2018-07-01path: output PATH by default, change --bin to --no-binHisham Muhammad2-2/+3
2018-07-01path, loader: handle coexisting foo.bar and foo.bar.init modulesHisham Muhammad2-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).
2018-07-01write_rockspec: cleanup all rockspec internal fieldsHisham Muhammad1-0/+10
2018-07-01wrapper scripts: honor deps_mode when wrapping scriptsHisham Muhammad6-16/+36
2018-07-01build, write_rockspec: autodetect scripts to install as wellHisham Muhammad2-7/+20
2018-07-01Travis: fix cache directoriesHisham Muhammad1-10/+8
2018-07-01Let LuaRocks find LUA_LIBDIR and LUA_INCDIR by itselfHisham Muhammad7-59/+48
2018-07-01mingw32: do not link Lua staticallyHisham Muhammad2-0/+17
2018-07-01Tests: config: no need for special-casing WindowsHisham Muhammad2-37/+20
2018-07-01Windows: disable fs modules for nowHisham Muhammad1-0/+1
2018-07-01fs: do not cache cfg.variablesHisham Muhammad3-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.