-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ability to override built-in modules was introduced with [1]. To use it, you must install the package files using the override.package path for each file included. Using soft links inside the rock seems like a bad idea -- luarocks try to resolve them on files deploy and fails to do so. The only stable approach is seems to be to duplicate the files to the override folder. builtin rockspec doesn't allow to specify a single file twice, so we need to store the soft link in the repo to workaround it. To build override package with builtin rockspec, we'll also need to manually maintain two lists of package files. cmake approach allows to automatize it. On the other hand, to work with cmake-built rock, you'll need to `make` the rock while working locally. Since `make .rocks` is a dependency of `make test`, it shouldn't be a big issue. 1. tarantool/tarantool#7774 Part of tarantool/tarantool#7727
- Loading branch information
1 parent
d922704
commit b397c2e
Showing
4 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ doc/output/ | |
doc/locale/en/ | ||
|
||
*.lua.c | ||
|
||
build.luarocks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | ||
|
||
project(metrics NONE) | ||
|
||
## Install #################################################################### | ||
############################################################################### | ||
|
||
if(NOT DEFINED TARANTOOL_INSTALL_LUADIR) | ||
set(TARANTOOL_INSTALL_LUADIR "${PROJECT_SOURCE_DIR}/.rocks/share/tarantool") | ||
endif() | ||
|
||
install( | ||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME} | ||
DESTINATION ${TARANTOOL_INSTALL_LUADIR} | ||
) | ||
|
||
install( | ||
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cartridge | ||
DESTINATION ${TARANTOOL_INSTALL_LUADIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters