You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2023. It is now read-only.
Добавил возможность пометить конфигурацию модуля чтобы не править зависимости
Конфигурация пропускается при вызове ref fix если есть флаг unmanaged-deps
Пример:
```yaml
my-config:
unmanaged-deps: true
deps:
- dep1
- dep2
```
Copy file name to clipboardexpand all lines: docs/README-module.yaml.md
+156-141
Original file line number
Diff line number
Diff line change
@@ -9,169 +9,184 @@ Each configuration may include the following sections:
9
9
- build
10
10
- install/artifacts
11
11
12
-
Configurations may be inherited in order to avoid repeating of dependencies information.
12
+
Configurations may be inherited to avoid repeating of dependencies information.
13
13
14
14
A module shall contain configuration `full-build`, including all the others, if possible. It will be used while execution of the following commands `cm get` and `cm build`.
15
15
16
16
Optional configuration `default` can contain default build and deps sections.
17
17
18
18
Example:
19
-
20
-
# configuration description section client
21
-
client:
22
-
# list of dependencies of client configuration
23
-
# dependencies are listed in the following form: <moduleName>[@branchName][/configName]
24
-
# kanso – reference to kanso module
25
-
# kanso/client – reference to kanso in client configuration
26
-
# kanso@develop/client - kanso from develop branch in client configuration
27
-
# '@' and '/' marks in branch name should be shielded by '\'
28
-
deps:
29
-
- core
30
-
- log4net
31
-
- nunit
32
-
- logging
33
-
- http
34
-
- http.rp
35
-
- topology
36
-
# to prefer current branch in deps
37
-
- force: $CURRENT_BRANCH
38
-
# or use <moduleName>@$CURRENT_BRANCH to prefer current branch in some module;
39
-
# you can also choose any specific branch name in deps:
40
-
# - force: mybestbranch
41
-
# or provide a comma-separated list of preferred branches:
- myhooks/pre-push # A way to a hook in a repository
168
+
# will be copied to <module_name>/.git/hooks
169
+
# A hook inbuilt into pre-commit will check that files containing non-ASCII symbols have UTF-8 with BOM coding
170
+
- pre-commit.cement
160
171
161
-
default: # Description in a default configuration
162
-
hooks:
163
-
- myhooks/pre-push # A way to a hook in a repository
164
-
# will be copied to <module_name>/.git/hooks
165
-
# A hook inbuilt into pre-commit will check that files containing non-ASCII symbols have UTF-8 with BOM coding
166
-
- pre-commit.cement
167
-
168
-
full-build *default: # Other module configurations
169
-
172
+
full-build *default: # Other module configurations
173
+
```
170
174
171
175
If there is a hook in a present branch, then it is not deleted when you switch to another branch.
172
176
If you want to use your hook with pre-commit.cement, just add its call-out into your hook
173
-
174
-
.git/hooks/pre-commit.cement
175
-
if [ $? -ne 0 ]; then
176
-
exit 1
177
-
fi
177
+
```sh
178
+
.git/hooks/pre-commit.cement
179
+
if [ $? -ne 0 ]; then
180
+
exit 1
181
+
fi
182
+
```
183
+
184
+
# Advanced configuration
185
+
#### Excluding specific config from dependency management
186
+
In case it is undesirable to have specific configuration being automatically updated with `cm ref add`/`cm ref fix` commands, it is possible to mark such a section with `unmanaged-deps` flag
0 commit comments