aboutsummaryrefslogtreecommitdiff
path: root/win32 (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-04-13use skip_set terminology + code cleanupsHisham Muhammad5-25/+29
2021-04-08fs.win32: Do not revoke permission from the current user (#1256)Alexey Melnichuk1-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>
2021-04-06tests: add basic test for XDG_CONFIG_HOMEHisham Muhammad1-0/+25
2021-04-06Add function fs.is_superuser()Carl Smedstad4-2/+14
For environments other than UNIX, this will return false. Suggested by @hishamhm.
2021-04-06Support XDG_CONFIG_HOMECarl Smedstad1-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.
2021-04-06Respect the environment variable XDG_CACHE_HOMECarl Smedstad1-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
2021-04-06Simplify the code in set_confdirsCarl Smedstad1-9/+2
2021-04-06Set cfg.home_tree even for root userCarl Smedstad2-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'.
2021-04-03configure: check home dir for default-lua-versionGustavo Ramires1-2/+2
https://github.com/luarocks/luarocks/issues/1293 Co-authored-by: Hisham Muhammad <hisham@gobolinux.org>
2021-03-30Release 3.6.0v3.6.0Hisham Muhammad5-7/+8
2021-03-30makedist: build binaries using Lua 5.3Hisham Muhammad1-1/+1
luaposix wasn't updated for Lua 5.4 yet
2021-03-22fix: pack: rockspec with a bare file in the urlHisham Muhammad6-6/+129
2021-03-22pack: check that directory inside archive actually existsHisham Muhammad3-1/+32
2021-03-19repos: fix renaming of versioned bin/ entry back to non-versionedHisham Muhammad1-1/+1
2021-03-19repos: search for "foo" in manifest when processing "foo.init"Hisham Muhammad1-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.
2021-03-19repos: double-check that all files from a rock are installedHisham Muhammad7-9/+129
Ensure that `luarocks` fails if an installation does not successfully deploy all files registered in the `rock_manifest`. See #1276.
2021-03-19repos.delete_version: remove entry from manifest if rock is already missingHisham Muhammad1-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.
2021-03-16Fix auto-detecting cygwin: src/luarocks/core/sysdetect.lua (#1264)Lemures Lemniscati1-1/+1