<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luarocks/spec/loader_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>loader.which: new option for searching package.path and cpath</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:28:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=bec4a9cbf72c8e392163f50f7b6bbb18763d9f90'/>
<id>urn:sha1:bec4a9cbf72c8e392163f50f7b6bbb18763d9f90</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>fix regression in dependency matching of luarocks.loader</title>
<updated>2020-04-14T01:27:17+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2020-04-13T22:46:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=67ea6328e567fd224e7cd8ed23f55571928d7e1b'/>
<id>urn:sha1:67ea6328e567fd224e7cd8ed23f55571928d7e1b</id>
<content type='text'>
Regression introduced in
https://github.com/luarocks/luarocks/commit/65c417e0ecda55f44c691df032163a8c08f0b52a

Thanks to @lhemkendreis for the detailed description and suggested
fix, which was applied here!

Added a regression test which exercises dependency matching.

Closes #1175.
</content>
</entry>
<entry>
<title>Tests: add regression test for luarocks.loader startup</title>
<updated>2018-09-11T20:06:40+00:00</updated>
<author>
<name>Hisham Muhammad</name>
<email>hisham@gobolinux.org</email>
</author>
<published>2018-09-11T20:06:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/luarocks/commit/?id=8d95d5607fdd829d4b77c5225fd6b9015b1df034'/>
<id>urn:sha1:8d95d5607fdd829d4b77c5225fd6b9015b1df034</id>
<content type='text'>
</content>
</entry>
</feed>
