mirror of
https://github.com/nix-community/naersk
synced 2024-11-10 06:04:17 +00:00
e8f9f8d037
When a dependency gets fetched from Git, it's possible for its name to contain slashes - e.g. because the dependency's branch name contains one: ``` something-something = { git = "...", branch = "JIRA-123/dev" } ``` Currently, because we don't sanitize those slashes, trying to compile such `Cargo.toml` / `Cargo.lock` would fail - e.g. given a dependency from branch `JIRA-123/dev`, we'd try to extract it into path `JIRA-123/dev` instead of something flat such as `JIRA-123_dev`. This commit fixes this issue by sanitizing all the `nkey`s - basically, for all dependency paths, we replace `/` with `_`. The choice of underscore is arbitrary, just seemed like a good fit. |
||
---|---|---|
.. | ||
default.nix | ||
to-toml.nix |