mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 19:59:36 +00:00
New translations dependencies.mdx (Polish)
[ci skip]
This commit is contained in:
@@ -41,24 +41,22 @@ DCR uses a package registry for dependency lookup by name.
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
# ~/.dcr/config.toml
|
# ~/.dcr/config.toml
|
||||||
[[registry]]
|
[registry.default]
|
||||||
name = "default"
|
|
||||||
url = "https://index.dcr.pm"
|
url = "https://index.dcr.pm"
|
||||||
|
priority = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
Registry priority: order in `config.toml`. The `DCR_INDEX_PATH` variable overrides the path to `index.json`.
|
Registry priority: order in `config.toml`. The `DCR_INDEX_PATH` variable overrides the path to `index.json`.
|
||||||
|
|
||||||
## Git dependencies
|
## Git dependencies
|
||||||
|
|
||||||
DCR clones git repositories via `git2`:
|
Git dependencies are parsed and recorded in `dcr.lock`. DCR supports specifying branch/tag/rev for git sources:
|
||||||
|
|
||||||
* `branch` — switch to a branch
|
* `branch` — switch to a branch
|
||||||
* `tag` — switch to a tag
|
* `tag` — switch to a tag
|
||||||
* `rev` — switch to a specific commit
|
* `rev` — switch to a specific commit
|
||||||
* `features` — feature flags (parsed, but does not affect build)
|
* `features` — feature flags (parsed, but does not affect build)
|
||||||
|
|
||||||
Cache path: `~/.dcr/git/\<hash>/`.
|
|
||||||
|
|
||||||
## Path dependencies
|
## Path dependencies
|
||||||
|
|
||||||
Local paths. DCR automatically discovers include and lib directories from the neighbor's `dcr.toml`.
|
Local paths. DCR automatically discovers include and lib directories from the neighbor's `dcr.toml`.
|
||||||
|
|||||||
Reference in New Issue
Block a user