aboutsummaryrefslogtreecommitdiff
path: root/win32 (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2022-01-25fix `--pin` option so it appears correctly in user docs (#1390)Aire-One2-1/+5
* fix(build) cmd option `--pin` The `build` command `--pin` was asigned to the global parser. This fix this issue by making it a command flag. * fix(install) cmd option --pin
2021-12-29Remove luarocks.logiceditor.com from default mirror listHisham Muhammad1-1/+0
As discussed in #1354. We're removing it from the default mirror list since it is http:// and the https:// certificate is presenting issues. We can reinstate it once the certificate issues are sorted! Closes #1354.
2021-11-30Improve performance of reading zip file by not processing header (#1370)Alex Richard1-13/+7
2021-11-09Changelog for LuaRocks 3.8.0Hisham Muhammad1-0/+22
2021-11-08Release 3.8.0v3.8.0Hisham Muhammad5-7/+8
2021-11-08Auto-convert github.com source URLs to use httpsHisham Muhammad1-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/
2021-11-08win32: icacls fix for usernames with spacesHisham Muhammad1-1/+11
2021-11-04win32: revert Everyone back to *S-1-1-0Hisham Muhammad1-1/+1
see discussion at https://github.com/luarocks/luarocks/issues/1312#issuecomment-896155122 Fixes #1312
2021-11-03Makes a variable localarichard1-1/+1
2021-10-16respect existing LUALIB if given (#1358)Hisham Muhammad1-1/+8
Fixes #1357.
2021-09-23fix check_external_dependency_at (#1355)erw71-6/+7
Fix a problem where 'files' were being sorted even though they should have been inspected in the order of external_deps_patterns.
2021-09-15fix configuration for OpenBSD (#1352)omar-polo1-0/+5
2021-08-13upload: support uploading pre-packaged .src.rock files (#1321)Hisham Muhammad2-7/+20
upload: support uploading pre-packaged .src.rock files Co-authored-by: daurnimator <quae@daurnimator.com>
2021-08-10README: switch Travis badge to travis-ci.comHisham Muhammad1-1/+1
2021-07-22tests: bump luacov to 0.15.0Hisham Muhammad5-14/+14
2021-06-22allow to work without debug libraryFrancois Perrad6-5/+16
2021-06-22luarocks test: add --prepare flag (#1314)Deepak Singh Rathore3-6/+37
* Added prepare flag in test command * Added test for prepare flag in spec/test_spec.lua Fixes #1303
2021-05-10deps: remove redundant argsgerrard1-1/+1
2021-05-05Add issue templates for bugs and enhancementsCarl Smedstad2-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
2021-04-13Changelog: add 3.6.0 and 3.7.0Hisham Muhammad1-2/+55
2021-04-13Release 3.7.0v3.7.0Hisham Muhammad5-7/+8
2021-04-13use mirrors when downloading rocks even if manifest succeedsHisham Muhammad2-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.
2021-04-13fix: don't propagate invalid exitcode in download errorsHisham Muhammad2-7/+9
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>