-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules: find module with TT_CLI_MODULES_PATH
Closes #1013 @TarantoolBot document Title: Use environment variable to find modules. The TT_CLI_MODULES_PATH environment variable specifies a list of module's paths separated by a colon “:”. It can be set externally from tt and must contain a list of folders where modules are located. The logic of working with this variable is similar to the PATH system variable. Lists of modules are combined into one common list: - The modules declared in the configuration file tt.yaml come first - then the modules defined via the environment variable are added. Any duplicates must be removed, while maintaining the original order of module declarations. **Usage example** Set variable: ```sh export TT_CLI_MODULES_PATH=/ext/path/modules:${TT_CLI_MODULES_PATH} ```
- Loading branch information
Showing
3 changed files
with
56 additions
and
22 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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// FIXME: Create new tests https://github.com/tarantool/tt/issues/1039 | ||
|
||
package modules | ||
|
||
import ( | ||
|