summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 3.8.0v3.8.0Hisham Muhammad2021-11-085-7/+8
|
* Auto-convert github.com source URLs to use httpsHisham Muhammad2021-11-081-0/+9
| | | | | | | | | This avoids having to fix every rockspec that uses github.com. See https://github.blog/2021-09-01-improving-git-protocol-security-github/ For more context, see: https://github.com/teal-language/tl/pull/494/
* win32: icacls fix for usernames with spacesHisham Muhammad2021-11-081-1/+11
|
* win32: revert Everyone back to *S-1-1-0Hisham Muhammad2021-11-041-1/+1
| | | | | | | see discussion at https://github.com/luarocks/luarocks/issues/1312#issuecomment-896155122 Fixes #1312
* Makes a variable localarichard2021-11-031-1/+1
|
* respect existing LUALIB if given (#1358)Hisham Muhammad2021-10-161-1/+8
| | | Fixes #1357.
* fix check_external_dependency_at (#1355)erw72021-09-231-6/+7
| | | | Fix a problem where 'files' were being sorted even though they should have been inspected in the order of external_deps_patterns.
* fix configuration for OpenBSD (#1352)omar-polo2021-09-151-0/+5
|
* upload: support uploading pre-packaged .src.rock files (#1321)Hisham Muhammad2021-08-132-7/+20
| | | | | upload: support uploading pre-packaged .src.rock files Co-authored-by: daurnimator <quae@daurnimator.com>
* README: switch Travis badge to travis-ci.comHisham Muhammad2021-08-101-1/+1
|
* tests: bump luacov to 0.15.0Hisham Muhammad2021-07-225-14/+14
|
* allow to work without debug libraryFrancois Perrad2021-06-226-5/+16
|
* luarocks test: add --prepare flag (#1314)Deepak Singh Rathore2021-06-223-6/+37
| | | | | | * Added prepare flag in test command * Added test for prepare flag in spec/test_spec.lua Fixes #1303
* deps: remove redundant argsgerrard2021-05-101-1/+1
|
* Add issue templates for bugs and enhancementsCarl Smedstad2021-05-052-0/+42
| | | | | | | | | The issue tracker does unfortunately contain quite a lot of low-quality issues. I think issue templates can improve this for the future. Adapted from these templates: https://github.com/swaywm/sway/tree/master/.github/ISSUE_TEMPLATE
* Changelog: add 3.6.0 and 3.7.0Hisham Muhammad2021-04-131-2/+55
|
* Merge branch '3.7.0'Hisham Muhammad2021-04-130-0/+0
|\
| * Release 3.7.0v3.7.0Hisham Muhammad2021-04-135-7/+8
|/
* use mirrors when downloading rocks even if manifest succeedsHisham Muhammad2021-04-132-5/+73
| | | | | | | | | | | | LuaRocks generally only checked whether to use a mirror in the first operation, when it fetches the manifest. If the manifest fails to load, it switches to the mirror and everything works from there. But if the manifest fetches ok and the then actual rock download fails with a 504, it gives up, instead of trying that in a mirror as well. Changing that to make it retry every download on a mirror when the base URL matches one configured in cfg.rocks_servers should make it much more resilient. Fixes #1299.
* fix: don't propagate invalid exitcode in download errorsHisham Muhammad2021-04-132-7/+9
|
* use skip_set terminology + code cleanupsHisham Muhammad2021-04-135-25/+29
|
* fs.win32: Do not revoke permission from the current user (#1256)Alexey Melnichuk2021-04-081-7/+16
| | | | | | | | | * Fix. Do not revoke permission from the current user * Do not quote FS commands * hotfix: remove stray character Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
* tests: add basic test for XDG_CONFIG_HOMEHisham Muhammad2021-04-061-0/+25
|
* Add function fs.is_superuser()Carl Smedstad2021-04-064-2/+14
| | | | | | For environments other than UNIX, this will return false. Suggested by @hishamhm.
* Support XDG_CONFIG_HOMECarl Smedstad2021-04-061-21/+27
| | | | | | | | | | | | | | | | | The loading of the config file has been changed to support the XDG Base Directory specification. More info here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html If in a UNIX environment, LuaRocks will try loading a config file in XDG_CONFIG_HOME. If this fails, try loading one in the old location ~/.luarocks. This method clashed a bit with the old code that separated the setting of confdirs and the loading of the config files. As we now change cfg.homeconfdir depending on where we find the config file I found it necessary to remove the function set_confdirs() and move some pieces into the config loading logic.
* Respect the environment variable XDG_CACHE_HOMECarl Smedstad2021-04-061-1/+2
| | | | | | | This is needed in order to follow the XDG Base Directory specification. More info here: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
* Simplify the code in set_confdirsCarl Smedstad2021-04-061-9/+2
|
* Set cfg.home_tree even for root userCarl Smedstad2021-04-062-4/+4
| | | | | | | | | Don't set cfg.home_tree to nil in cfg.lua when the user is root. Instead, do explicit checks if the user is root in cmd.lua. This removes some confusion, as cfg.home_tree is later set by the default system config file, so it will show up when running 'luarocks config'.
* configure: check home dir for default-lua-versionGustavo Ramires2021-04-031-2/+2
| | | | | | https://github.com/luarocks/luarocks/issues/1293 Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
* Merge branch '3.6.0'Hisham Muhammad2021-03-300-0/+0
|\
| * Release 3.6.0v3.6.0Hisham Muhammad2021-03-305-7/+8
|/
* makedist: build binaries using Lua 5.3Hisham Muhammad2021-03-301-1/+1
| | | | luaposix wasn't updated for Lua 5.4 yet
* fix: pack: rockspec with a bare file in the urlHisham Muhammad2021-03-226-6/+129
|
* pack: check that directory inside archive actually existsHisham Muhammad2021-03-223-1/+32
|
* repos: fix renaming of versioned bin/ entry back to non-versionedHisham Muhammad2021-03-191-1/+1
|
* repos: search for "foo" in manifest when processing "foo.init"Hisham Muhammad2021-03-191-0/+8
| | | | | | | | | Older versions of LuaRocks (< 3) registered "foo.init" files as "foo" (which caused problems, so that behavior was changed). But look for that in the manifest anyway for backward compatibility. See https://github.com/luarocks/luarocks/commit/65c417e0ecda55f44c691df032163a8c08f0b52a See #1276.
* repos: double-check that all files from a rock are installedHisham Muhammad2021-03-197-9/+129
| | | | | | | Ensure that `luarocks` fails if an installation does not successfully deploy all files registered in the `rock_manifest`. See #1276.
* repos.delete_version: remove entry from manifest if rock is already missingHisham Muhammad2021-03-191-1/+8
| | | | | | | If rock_manifest could not be found, the entry in manifest is unusable: without the list of files from rock_manifest, we can't scan the repository to remove files. This means the entry in the repo manifest is a leftover from an incomplete removal. Remove the entry from the repo manifest.
* Fix auto-detecting cygwin: src/luarocks/core/sysdetect.lua (#1264)Lemures Lemniscati2021-03-161-1/+1
|
* Add filesystem abstraction for NetBSD (#1267)Lawrence Hoffman2021-03-161-0/+14
| | | | | | | * Add fs abstraction file for NetBSD * Add init function with verification that the unzip binary is available Co-authored-by: Lawrence Hoffman <lawrence.hoffman@block-g.com>
* configure: make shellcheck happyHisham Muhammad2021-03-161-1/+1
|
* manif: remove dead codeHisham Muhammad2021-03-161-44/+0
|
* editorconfig: trim trailing whitespaceHisham Muhammad2021-03-16103-673/+674
|
* manif.writer: be more resilient to a mismatched "x.init" module name in manifestHisham Muhammad2021-03-161-8/+17
| | | | | Old versions of LuaRocks might get confused with modules called "x.init". This makes the manifest writer more resilient to that.
* configure: check that version of lua.h matchesHisham Muhammad2021-03-161-2/+5
| | | | This is to match the behavior of luarocks.deps
* Fix fs.is_tool_available invocation for SVNHisham Muhammad2021-03-161-1/+1
| | | | closes #1280
* install.bat: add >NUL redirects to all msvc compiler environment commandsHisham Muhammad2021-03-161-3/+3
|
* redirect output from vcvarsall.bat to nul (#1288)dwenegar2021-03-161-1/+1
|
* .gitignore: add .luacheckcacheHisham Muhammad2021-03-151-0/+1
|
* Run Luacheck in CI & fix reported errors (#1285)Carl Smedstad2021-03-1523-37/+56
| | | | | | | | Tried to do this as non-intrusively as possible, mostly by ignoring the issues in-line. Set the option unused_secondaries to false as suggested by @hishamhm. This makes named but ununsed return values, that serves a documenting purpose, allowed.