Commit graph

17 commits

Author SHA1 Message Date
Patryk Wychowaniec
66883c7d6d readme: Fix ./script/gen
I've accidentally broken the script during the recent test refactoring,
since now test.nix doesn't evaluate to an attrset.
2022-05-16 19:33:31 +02:00
Patryk Wychowaniec
f21309b38e refactor: Refactor tests into separate files 2022-05-03 12:41:13 +02:00
Patryk Wychowaniec
e8f9f8d037 Support dependencies with slashes in their names
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.
2022-04-18 09:12:25 +02:00
Nicolas Mattia
f5ecd757b3 Add default-run failing test 2020-11-13 12:33:04 +01:00
Sean Bennett
96d36884e7 Make sure expandMember works with a trailing slash 2020-03-20 12:27:48 +01:00
Bas van Dijk
3e1f71f453 Support branch and tag attributes in git sources 2020-03-16 13:08:01 +01:00
Nicolas Mattia
65e8bba46a Add reproduction for workspace build.rs failure 2020-02-11 23:44:42 +01:00
Nicolas Mattia
7b5659aacd Use --message-format for finding executables
Use message-format for executable list
2020-02-10 14:03:08 +01:00
Nicolas Mattia
560601e3ab Expand wildcard members in manifests 2020-01-14 19:50:32 +01:00
Nicolas Mattia
32b0dd73d9 Fix failure on duplicate git dependencies
The git dependencies were indexed by crate name, which is an issue if a dependency is imported through git at various commits. Moreover, if a crate is imported several time at _the same commit_, it is now unpacked only once.
2020-01-10 11:52:24 +01:00
Nicolas Mattia
47b22494d9 Add experimental support for git dependencies 2019-12-16 10:33:10 +01:00
Bas van Dijk
59921aa707 Copy paths from the [patch] section into the dummy-src
This allows users to override the source of crates using:

```
[patch.crates-io]
bar = { path = 'my/local/bar' }
```
2019-10-29 14:57:28 +01:00
Bas van Dijk
a9cade2ca2 Remove build scripts during dummyfication
Otherwise builds fail with an error like:

Compiling simple-dep v0.1.0 (/private/var/folders/5h/b11m6fxj2tqgbxwz5bgjy42c0000gn/T/nix-build-some-name.drv-0/dummy-src)
error: couldn't read build.rs: No such file or directory (os error 2)
2019-10-09 16:33:27 +02:00
Nicolas Mattia
566c70a395 Properly fixup cargo tomls for dep build 2019-10-09 10:37:22 +02:00
Nicolas Mattia
4c2daf7ccd Fix workspaces 2019-07-11 11:39:40 +02:00
Nicolas Mattia
0068d11d38 POC of incrementality 2019-06-27 12:43:01 +02:00
Nicolas Mattia
d8de7a0c2e wip 2019-06-24 18:04:34 +02:00