<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luarocks/spec/util_spec.lua, branch test-pin</title>
<subtitle>A mirror of https://github.com/luarocks/luarocks.git
</subtitle>
<id>https://git.lua4.win/luarocks/atom?h=test-pin</id>
<link rel='self' href='https://git.lua4.win/luarocks/atom?h=test-pin'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/'/>
<updated>2024-02-27T16:28:33+00:00</updated>
<entry>
<title>tests: reorganize and speed up unit tests</title>
<updated>2024-02-27T16:28:33+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2024-02-26T21:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=03e401231972d7b4db0145a71ce74d5d18d1a901'/>
<id>urn:sha1:03e401231972d7b4db0145a71ce74d5d18d1a901</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: better normalization for paths and slashes</title>
<updated>2024-02-23T23:47:09+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2024-02-20T16:43:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=2c4ff5240bf298fec07749f5984de2f08b8736ec'/>
<id>urn:sha1:2c4ff5240bf298fec07749f5984de2f08b8736ec</id>
<content type='text'>
Fixes #1195.
</content>
</entry>
<entry>
<title>tests: tests for util.variable_substitutions</title>
<updated>2022-06-06T20:14:52+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2022-06-06T18:43:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=42c5886178e5ca0cf4796ad45b1594087cb8da4e'/>
<id>urn:sha1:42c5886178e5ca0cf4796ad45b1594087cb8da4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>editorconfig: trim trailing whitespace</title>
<updated>2021-03-16T19:32:45+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2021-03-16T16:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f'/>
<id>urn:sha1:8f3ce333e7a1abfc6bf0488817d9eff4a2fd443f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: shorter descriptions</title>
<updated>2020-02-14T12:53:12+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2020-02-14T12:53:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=bd27d052eaf856bf24c77f556a50b7e19f11cba1'/>
<id>urn:sha1:bd27d052eaf856bf24c77f556a50b7e19f11cba1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>path: keep order of existing entries in PATH</title>
<updated>2019-07-17T23:30:25+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2019-07-13T20:12:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=72d80a35bee56bd8f8002b199db37f89c1441c29'/>
<id>urn:sha1:72d80a35bee56bd8f8002b199db37f89c1441c29</id>
<content type='text'>
Implements suggestion by @FSMaxB:

&gt; Add an additional flag to util.cleanup_path that specifies if the cleanup
&gt; happens from the right or from the left. If append is true, clean up from the
&gt; left, otherwise clean up from the right.

Fixes #763.
</content>
</entry>
<entry>
<title> Do not rewrite path in util.cleanup_path if the desired version is a substring of the version (#868)</title>
<updated>2018-08-01T19:52:02+00:00</updated>
<author>
<name>Ryan Hartlage</name>
<email>ryanplusplus@gmail.com</email>
</author>
<published>2018-08-01T19:52:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=8e39a526b57a2f9cf021f38cd9ffc8f88abd68fd'/>
<id>urn:sha1:8e39a526b57a2f9cf021f38cd9ffc8f88abd68fd</id>
<content type='text'>
*  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
</content>
</entry>
<entry>
<title>cfg, cmd: major reorganization</title>
<updated>2018-07-01T18:51:13+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2018-06-20T13:28:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=4c1c170b9d344b6c069c8e6df5798f6e0bd63966'/>
<id>urn:sha1:4c1c170b9d344b6c069c8e6df5798f6e0bd63966</id>
<content type='text'>
* `--lua-dir` flag, specifying a prefix for the Lua installation to
  be used. This reconfigures LuaRocks entirely, including allowing
  a LuaRocks which is itself running using one Lua 5.x version to
  manage packages for a different Lua 5.y version. The resulting
  configuration can be checked with `luarocks config --lua-dir=&lt;path&gt;`.
* requiring `luarocks.core.cfg` no longer has side-effects
  * configuration now needs to be initialized with `cfg.init([lua_data])`,
    where `lua_data` is a table with the configuration of the VM:
    * `lua_version` - e.g. `"5.3"`
    * `luajit_version` - e.g. `"2.1.0-beta3"`
    * `lua_interpreter` - e.g. `"lua5.3"`
    * `lua_bindir` - e.g. `"/usr/local/bin"`
    * `lua_libdir` - e.g. `"/usr/local/lib"`
    * `lua_incdir` - e.g. `"/usr/local/include/lua-5.3"`
  * `cfg.init` can be called multiple times, reconfiguring the global state.
    This is important since `luarocks.loader` now calls it, and the `--lua-dir`
    command line can override the configuration and reconfigure LuaRocks.
* `site_config_*` is no more: LuaRocks is no longer dependent on a properly-written
  site_config file. Instead, it can *optionally* use `luarocks.core.hardcoded`
  for hardcoded values, or detect its configuration at runtime, based on
  OS detection, arg[-1] or command-line flags.
* reduction of moving parts in the configuration:
  * `cfg.platforms` is no longer a globally-visible table; instead, `cfg`
    provides an API of read-only functions: `is_platform`, `each_platform`,
    `print_platforms`.
  * `cfg.*_proxy` options are no longer configured via the config files,
    but rather via the standard `*_proxy` environment variables.
* `"windows"` is now the more general platform name of the Windows family.
  This is technically a breaking change but I don't expect it to cause
  problems with real-world rockspecs.
* internal code reorganization in `luarocks.cmd` module
</content>
</entry>
<entry>
<title>Fix the collecting of coverage data from unit tests</title>
<updated>2018-06-12T18:23:31+00:00</updated>
<author>
<name>George Roman</name>
<email>george.roman.99@gmail.com</email>
</author>
<published>2018-06-10T20:41:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=9f00925a3d5e70350ad73d908d99c8ef634dc7eb'/>
<id>urn:sha1:9f00925a3d5e70350ad73d908d99c8ef634dc7eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>General refactor introducing Rockspec and Build.Opts objects</title>
<updated>2018-06-06T15:39:23+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2018-06-05T04:58:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=35d139407db87349e8ccc11e0e1696b610d9582e'/>
<id>urn:sha1:35d139407db87349e8ccc11e0e1696b610d9582e</id>
<content type='text'>
Adds a Rockspec object responsible for constructing all Rockspec
tables in the manner of the Queries and Results objects, and
a type-checked Build.Opts tables for build options, since
the number of attributes passed around was getting out of hand.

This allowed a major cleanup in the luarocks.build,
luarocks.fetch and luarocks.cmd.write_rockspec modules.
</content>
</entry>
</feed>
