aboutsummaryrefslogtreecommitdiff
path: root/spec (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-08-05fs.win32: fix environment variable name in generated wrapperHisham Muhammad1-1/+1
it is LUAROCKS_SYSCONFDIR, not LUAROCKS_SYSCONFIG Closes #459. Thanks @daurnimator for going through the old issues!
2018-08-02Fix: do not detect .luarocks/config-5.x.lua and lua_modules as modulesHisham Muhammad2-2/+54
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.
2018-08-02init: store Lua location in configHisham Muhammad1-1/+28
This way a user can use `--lua-dir` once, in `luarocks init` and that configuration will be active for the project.
2018-08-02Windows binary: do not hardcode SYSTEM as "MINGW"Hisham Muhammad1-2/+2
2018-08-01 Do not rewrite path in util.cleanup_path if the desired version is a ↵Ryan Hartlage2-1/+19
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
2018-07-31Tests: refactor and add fixtures for the doc testsGeorge Roman2-37/+122
2018-07-26cmd: do not parse assignments after --Hisham Muhammad1-1/+8
This allows using assignments with Busted in `luarocks test`.
2018-07-26fs: fix rwx_to_number, add negated mask modeHisham Muhammad2-11/+35
Fixes #856.
2018-07-25fetch: propagate error when failing to make a temp dirHisham Muhammad1-1/+4
2018-07-24Tests: add test_env.run_in_tmp utility functionGeorge Roman4-265/+217
2018-07-24Make fun.partial run with Lua 5.1George Roman1-1/+2
2018-07-24Tests: add more unit tests for fun.luaGeorge Roman1-0/+57
2018-07-23cmd: report arch when crashingHisham Muhammad1-1/+8
2018-07-23cfg: set fs_use_modules off for the Windows binaryHisham Muhammad1-0/+2
This should be a good way to set that automatically.
2018-07-23fs: make zip/unzip/gunzip/bunzip2 respect `nil,err` protocolHisham Muhammad2-11/+31
See #850.
2018-07-22fs.copy: skip copying if the source and destination are the same filesGeorge Roman2-1/+4
2018-07-22Tests: use more fixtures in the build testsGeorge Roman3-53/+101
2018-07-22cfg: do not crash when arg is not availableHisham Muhammad1-3/+3
Fixes #852.
2018-07-20fs.unix.tools: hotfix for touch formatHisham Muhammad1-1/+1
2018-07-20install.bat: updates for 3.0.0-rc1Hisham Muhammad1-34/+23
2018-07-18minor luacheck fixesHisham Muhammad2-2/+3
2018-07-18forward error messages from fs.unzipHisham Muhammad2-4/+4
2018-07-18Windows binary: build libbz2 dependencyHisham Muhammad1-1/+15
2018-07-18fs: make unpack_archive platform-agnostic using specific fs functionsHisham Muhammad7-191/+504
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.
2018-07-18fs: support both table and number in set_timeHisham Muhammad3-1/+32
2018-07-18fs: add filter_fileHisham Muhammad1-0/+30
2018-07-18binary: add lua-bz2 dependencyHisham Muhammad2-0/+45
2018-07-18tar: compatibility improvement tweaksHisham Muhammad1-24/+45
2018-07-18Tests: tweak dependencies for env=full testsHisham Muhammad1-11/+10
2018-07-18Tests: support running with the default detected OpenSSL locationsHisham Muhammad4-16/+12
2018-07-18cmd: only detect sysconfdir on UnixHisham Muhammad1-3/+3
On the Windows single-binary this produces a weird "src/" path.
2018-07-18cmd: fix displayed program name in single-binaryHisham Muhammad1-1/+1
2018-07-18cmd: portability fixes, don't check LuaJIT for Lua > 5.1Hisham Muhammad1-3/+12
2018-07-18cmd: support --lua-version without --lua-dirHisham Muhammad1-1/+9
2018-07-18cfg: detect Visual Studio Developer ConsoleHisham Muhammad1-1/+8
2018-07-18fun: add fun.partial and fun.flipHisham Muhammad1-0/+37
2018-07-18configure: recommend `make` instead of `make build`Hisham Muhammad1-1/+1
2018-07-18Makefile: remove ./ from build targetsHisham Muhammad1-6/+6
Improves compatibility with FreeBSD
2018-07-18write_rockspec: detect ISC licenseHisham Muhammad1-5/+11
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'.