aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-07-01Release 3.9.1v3.9.1Hisham Muhammad1-1/+1
2022-06-06deps: sanity check on luajitverHisham Muhammad1-1/+1
2022-06-06tests: tests for util.variable_substitutionsHisham Muhammad1-0/+25
2022-06-06rockspec: pass lua_dir and lua_interpreter to busted.Hisham Muhammad1-3/+3
2022-06-06loader.which: new option for searching package.path and cpathHisham Muhammad3-27/+66
Adds a new second argument, `where`, a string which indicates places to search for the module. If `where` contains "l", it will search using the LuaRocks loader; if it contains "p", it will look in the filesystem using package.path and package.cpath. You can use both at the same time. If successful, it will return four values. * If found using the LuaRocks loader, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * rock name * rock version * "l" to indicate the match comes from the loader. * If found scanning package.path and package.cpath, it will return: * filename of the module (eg. "/usr/local/lib/lua/5.1/socket/core.so"), * "path" or "cpath" * nil * "p" to indicate the match comes from scanning package.path and cpath. If unsuccessful, nothing is returned.
2022-06-06test: perform variable substitutions in test.flagsHisham Muhammad4-16/+13
2022-06-06tests: accept full path in -Xhelper lua_interpreterHisham Muhammad1-9/+14
2022-05-18binary build: help autodetection of the crosscompiled Lua librariesHisham Muhammad1-0/+1
2022-05-18fix error message when Lua library is not foundHisham Muhammad1-1/+1
2022-05-03Fix build of Windows binaryHisham Muhammad2-2/+2
Fixes #1412.
2022-05-03Add --no-project flag to override .luarocks project dirHisham Muhammad2-2/+7
2022-04-17Release 3.9.0v3.9.0Hisham Muhammad4-5/+5
2022-04-16tests: run tests on Lua 5.4 and LuaJIT 2.1Hisham Muhammad21-82/+233
2022-04-16deps: be more lenient in library version checkHisham Muhammad1-8/+18
2022-04-16makedist: build binaries using Lua 5.4Hisham Muhammad1-1/+1
2022-04-16deps: verify version mismatch when checking for Lua libraryHisham Muhammad1-2/+11
2022-04-16deps: better error message when lua.h version mismatchesHisham Muhammad2-9/+17
2022-04-16fs.unix: fallback for when $USER variable is unsetHisham Muhammad4-10/+22
Also, declare Unix version of current_user in luarocks.fs.unix.tools, so that the pure-Lua version based on LuaPosix takes precedence when available.
2022-04-16search: avoid mixing up version and repo in pick_installed_rockHisham Muhammad1-7/+3
2022-04-16Configurations for program_series and major_version are unusedHisham Muhammad2-18/+8
They look like useless maintenance burden, and I seriously doubt anyone uses those in their config files. In any case, they're easy to derive from cfg.program_version.
2022-04-12macos: support .tbd extension for later versions of macOSHisham Muhammad1-0/+2
2022-04-12macos: add best-effort library search for HomebrewHisham Muhammad1-0/+8
2022-04-12macos: use XCode SDK path by defaultHisham Muhammad1-0/+5
2022-04-12tests: avoid repeated hardcoded package version numbers all overHisham Muhammad13-178/+291
2022-04-11fs: try to accept a quoted filename with spacesHisham Muhammad1-1/+1
2022-04-11fs.is_tool_available: if it looks like a pathname, try that firstHisham Muhammad1-1/+14
Some uses of is_tool_available use binary names that can be overriden by the user via configuration.
2022-04-11patch: fix check for malformed patchesHisham Muhammad1-1/+2
2022-04-11add DragonFly BSD supportHisham Muhammad3-18/+15
2022-04-11fixes suggested by luacheckHisham Muhammad3-3/+3
2022-04-11simplify check if tool is availableHisham Muhammad8-36/+30
2022-04-11Changes for building the all-in-one binary with Lua 5.4Hisham Muhammad10-48/+50
2022-03-06build: change how the CFLAGS/LDFLAGS environment variables are honoredHisham Muhammad2-8/+22
This is to ensure that the -fPIC tweak is always added.
2022-03-06tests: don't download sailorHisham Muhammad5-5/+49
Use a small fixture instead to test the regression for sailorproject/sailor#138 Sailor was the largest rock downloaded by the test suite, so this should improve download times.
2022-03-06tests: don't use validate-args rockspec in testsHisham Muhammad7-49/+36
We only used the rockspec in testing, but since the app it refers to is GPL-3, it could cause confusion among users, so let's just drop it from the test suite. Closes #1387.
2022-03-06update Codecov uploaderHisham Muhammad1-1/+3
See my Codecov bug report at https://community.codecov.com/t/coverage-ui-off-by-one-when-file-starts-with-a-blank-line/3516/2
2022-03-02macOS: make deployment target 11.0 if running on macOS 11+Hisham Muhammad1-1/+3
2022-02-17fix: avoid quoting issues with LIBFLAG on MacOSHisham Muhammad1-2/+2
2022-02-17README: fix badge URLHisham Muhammad1-1/+1
2022-02-17builtin: always respect CC, CFLAGS, LDFLAGSHisham Muhammad2-8/+10
There were already workarounds in place for some platforms. This should make the behavior consistent. Fixes #429.
2022-02-17tests: remove Travis CI, add Github ActionsHisham Muhammad6-190/+117
2022-02-17tests: wait longer for mock server to startHisham Muhammad2-14/+29
2022-02-17fs.tools: remove trailing spaces from current dir, for WindowsHisham Muhammad1-1/+1
2022-02-17win32: do not use "pwd" on windows, use "echo %cd%"Hisham Muhammad3-2/+3
2022-02-17win32: use Windows's own MKDIR and RMDIRHisham Muhammad5-4/+4
2022-02-17Prevent creation of directory named '-p' on Windowsstevenwdv1-1/+1
`tools.make_dir` used `mkdir -p <name>` while `-p` [is not an existing switch](https://docs.microsoft.com/windows-server/administration/windows-commands/mkdir) on Windows. The switch is also not necessary because plain `mkdir` on Windows also creates intermediate directories.
2022-02-17win32.tools: replicate rmdir -pHisham Muhammad1-1/+9
2022-02-17Always produce a default config if cfg.init() fails loading a fileHisham Muhammad1-6/+10
This ensures that luarocks.loader() gets a baseline configuration
2022-02-16fix deployment on non-wrapped binaries (#1375)Hisham Muhammad4-15/+22
* fix deployment on non-wrapped binaries Fixes #1374. * Do not add .bat extension inside win32.wrap_script
2022-02-16no need for a make_shallow_copy utility functionHisham Muhammad3-17/+11
2022-02-08Fix crash when --lua-version is malformedHisham Muhammad2-0/+6