https://github.com/siffiejoe/luarocks-fetch-gitrec
LuaRocks fetcher module that clones git repositories recursively.
https://github.com/siffiejoe/luarocks-fetch-gitrec
git luarocks luarocks-fetcher
Last synced: 6 months ago
JSON representation
LuaRocks fetcher module that clones git repositories recursively.
- Host: GitHub
- URL: https://github.com/siffiejoe/luarocks-fetch-gitrec
- Owner: siffiejoe
- License: mit
- Created: 2015-05-25T13:40:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T15:03:35.000Z (about 11 years ago)
- Last Synced: 2023-03-25T11:52:07.221Z (about 3 years ago)
- Topics: git, luarocks, luarocks-fetcher
- Language: Lua
- Size: 137 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# luarocks-fetch-gitrec
LuaRocks fetcher module that clones git repositories recursively.
The code is a modified copy of the `luarocks.fetch.git` module
distributed with LuaRocks which is responsible for getting sources
from git repositories. In contrast to that module the git repositories
are cloned recursively (with the `--recursive` flag to the git command
line client) to fetch git submodules as well.
To use this module reference it in the `dependencies` table in your
rockspec (to make sure that it is installed when needed) and put one
of the supported URL schemes in the `source.url` field.
Example:
```lua
package = "my_package"
version = "0.1-1"
source = {
url = "gitrec+https://github.com/user/my_package.git" -- !!
}
dependencies = {
"lua >= 5.1, < 5.4",
"luarocks-fetch-gitrec", -- !!
}
description = {
-- ...
}
build = {
-- ...
}
```
Supported URL schemes are at the moment:
* `gitrec://...` (uses the "git" protocol; works with GitHub)
* `gitrec+http://...` (uses the "http" protocol; works with GitHub)
* `gitrec+https://...` (uses the "https" protocol; works with GitHub)
* `gitrec+file://...` (for local repositories)
* `gitrec+ssh://...` (uses the "ssh" protocol)