Rebecca Turner
112a80c012
Add cargoDocTest
( #720 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-10-12 22:08:18 +00:00
dependabot[bot]
0081e9c447
chore(deps): bump openssl from 0.10.64 to 0.10.66 in /checks/codesign ( #670 )
2024-07-23 01:48:59 +00:00
Simon Žlender
aa5dcd0518
Splice overrideToolchain ( #652 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-06-29 11:29:52 -07:00
Ivan Petkov
0095fd8ea0
removeReferencesToVendoredSources: handle cargoVendorDir not pointing to store ( #646 )
2024-06-15 17:55:13 +00:00
Ivan Petkov
35bc915249
cleanCargoToml: also clean variants using underscores ( #626 )
2024-05-26 17:41:17 +00:00
Ivan Petkov
5b0b062ff0
buildTrunkPackage: disable version checks by default ( #616 )
2024-05-19 00:06:59 +00:00
Ivan Petkov
54fe6fed44
vendorCargoDeps: allow arbitrary overrides when vendoring sources ( #615 )
2024-05-18 23:39:46 +00:00
Ivan Petkov
92d2b4b64a
Use resolver = 2 in all Cargo.tomls ( #608 )
2024-05-04 19:56:00 +00:00
Ivan Petkov
33d5862dbb
crateNameFromCargoToml: support selecting a name from metadata
( #606 )
2024-05-04 19:36:42 +00:00
Ivan Petkov
3124551aeb
chore: update end-to-end-example deps ( #601 )
2024-05-01 04:05:27 +00:00
Simon Žlender
9b32adff97
mkDummySrc: ignore clippy warnings in dummyrs ( #587 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-04-21 03:57:27 +00:00
Ivan Petkov
b47c4078b0
vendorCargoDeps: handle unused patch dependencies ( #581 )
2024-04-07 10:45:14 -07:00
Ivan Petkov
534860a39c
chore: bump Cargo.locks ( #579 )
2024-04-05 20:21:41 +00:00
Ivan Petkov
270c7d60d3
inheritCargoArtifactsHook: correctly handle nested CARGO_TARGET_DIR ( #561 )
2024-03-22 23:32:09 +00:00
Ivan Petkov
55187a8218
cargoNextest: support withLlvmCov ( #560 )
...
* This adds a convenience method of running `nextest` within `cargo
llvm-cov` without having to wire up the internal details manually
2024-03-22 22:39:45 +00:00
Adam Curtis
c4027e45b1
test: dummy sources do not emit any lints or warnings ( #506 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-02-09 00:34:40 +00:00
Ivan Petkov
f2926e34a1
chore: replace overrideScope' with overrideScope ( #517 )
2024-02-08 03:38:28 +00:00
Ivan Petkov
c7bb4ed1f3
cleanCargoToml: strip out [lints]
definitions when cleaning ( #516 )
2024-02-08 03:34:33 +00:00
Ivan Petkov
960d350770
vendorCargoDeps: manually splice packages to avoid cross build issues ( #507 )
...
* Source vendoring is passed as a standalone attribute to
`mkCargoDerivation`, meaning it does not automagically get spliced
with the correct local/cross system inputs (i.e. what would happen if
it was a `depsBuildBuild` entry)
* To fix this we need to make sure that `vendorCargoDeps` and all of its
transitive dependencies always use `runCommand` (and friends) from
their `pkgsBuildBuild` equivalent. This should always be safe to do
(even for cross-builds) since this amounts to building up a bunch of
sources which will be read by the build system
* Unfortunately I had to manually specify `pkgsBuildBuild.whatever` in
multiple places as I could not get things to work by messing with the
`callPackage` definition. Perhaps we should be using
`makeScopeWithSplicing'` instead of `makeScope` when constructing the
library, but I couldn't get it working (and I couldn't find any decent
docs on how to use it online) so this will make do for the time being.
2024-01-28 19:08:44 +00:00
Charles Hall
0327ca9d77
force buildDepsOnly
to produce out
only ( #493 )
...
This allows multi-output derivations using e.g. `buildPackage` to work.
Without this change, they fail to build because Nix thinks
`buildDepsOnly` is supposed to produce mulitple outputs too, but it
doesn't.
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2024-01-27 17:52:30 +00:00
Ivan Petkov
7814285d01
chore: bump all cargo deps ( #504 )
2024-01-27 03:58:59 +00:00
Adam Curtis
751290c945
fix: add #[allow(unused_extern_crates)] to dummy.rs ( #501 )
2024-01-27 02:36:30 +00:00
dependabot[bot]
0b4e511fe6
chore(deps): bump shlex from 1.2.0 to 1.3.0 in /checks/grpcio-test ( #495 )
2024-01-23 01:41:19 +00:00
dependabot[bot]
688e15c3b7
chore(deps): bump shlex from 1.2.0 to 1.3.0 in /checks/highs-sys-test ( #494 )
2024-01-23 01:41:02 +00:00
Leonardo Eugênio
2a5136f14a
buildTrunkPackage: Add "wasm-bindgen-cli" argument ( #363 )
2023-12-20 08:24:53 -08:00
dependabot[bot]
90ab25ee43
chore(deps): bump openssl from 0.10.57 to 0.10.60 in /checks/codesign ( #466 )
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.57 to 0.10.60.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.57...openssl-v0.10.60 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-28 16:05:50 -08:00
Ivan Petkov
3aaa2c5ddb
fix: avoid path starts with illegal character error ( #459 )
...
* Looks like Nix 2.19.0 doesn't like it when a path starts with `.` so
this updates the examples and tests to avoid doing that
2023-11-26 10:15:16 -08:00
Ivan Petkov
f1c2fe6716
installCargoArtifactsHook: allow specifying additional zstd args ( #450 )
2023-11-05 20:34:43 +00:00
Ivan Petkov
2b1203872d
chore: clean up some dead code warnings ( #449 )
2023-11-05 18:42:08 +00:00
Aidan Gauland
f8f1b3fc5b
cargoLib.cargoDeny: init ( #440 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-20 21:45:03 +00:00
Ivan Petkov
c97a0c0d83
feature: incremental zstd mode ( #398 )
...
---------
Co-authored-by: Dawid Ciężarkiewicz <dpc@dpc.pw>
2023-10-17 19:30:35 -07:00
Ivan Petkov
eb5034b6ee
replaceCargoLockHook: run as prePatchHook not postUnpack ( #434 )
2023-10-17 03:31:33 +00:00
Ivan Petkov
d4bddd0a8c
chore: update all examples with strictDeps = true;
( #430 )
2023-10-15 22:25:34 +00:00
simonzkl
47f84c5b60
removeReferencesToVendoredSources: sign aarch64-darwin binaries ( #418 )
...
---------
Co-authored-by: Simon Zlender <simonz@btcx.com>
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-15 20:09:08 +00:00
ISibboI
a8b2251989
Make cached cargo artifacts writable in buildPackage when using use-zstd
( #413 )
...
---------
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-10-15 19:08:32 +00:00
Ivan Petkov
4dcf584de1
mkCargoDerivation: replace Cargo.lock with contents of cargoLock
( #425 )
...
* The vendoring helpers already accept a `cargoLock` override, so
automatically linking it in the derivation (if set) makes it a bit
easier without having the caller manually do the link themselves
2023-10-15 01:42:24 +00:00
Ivan Petkov
ce0a13f8ba
cargoAudit: ignore yanked crates by default ( #423 )
...
* Checking for yanked crates requires network access (to ping the
crates.io index) which won't work from inside the sandbox
2023-10-14 21:50:48 +00:00
Ivan Petkov
9ab34e9194
chore: fix test outputHashes ( #424 )
2023-10-14 21:50:14 +00:00
Ivan Petkov
117ac48319
chore: update all test deps ( #420 )
2023-10-13 02:57:37 +00:00
Dawid Ciężarkiewicz
0da36bc7dd
fix: cargo docs
breaking in buildDepsOnly
of workspaces ( #410 )
2023-10-03 18:59:04 -07:00
Jörg Thalheim
16f5732c14
allow to pass outputHashes to crane ( #266 )
...
This makes it possible to evaluate crane in a nixos test without network
as well as allow to backup all fetched input derivations properly in a
binary cache, whereas fetchGit will fallback to downloading from a
repository, which also requires a `git` binary to be present.
Co-authored-by: Ivan Petkov <ivanppetkov@gmail.com>
2023-09-22 04:08:53 +00:00
Ivan Petkov
8b4f7a4dab
various: switch to using runCommand to improve caching ( #384 )
...
For example, commands which extract a tarball should be cached (i.e
should use `runCommand` not `runCommandLocal`) because it allows builds
to download the unpacked result instead of having to write both to the
store
2023-09-04 00:33:25 +00:00
Ivan Petkov
66303545d7
Update flake.lock ( #382 )
...
Flake lock file updates:
• Updated input 'flake-utils':
'github:numtide/flake-utils/919d646de7be200f3bf08cb76ae1f09402b6f9b4' (2023-07-11)
→ 'github:numtide/flake-utils/f9e7cf818399d17d347f847525c5a5a8032e4e44' (2023-08-23)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)
→ 'github:NixOS/nixpkgs/e7f35e03abd06a2faef6684d0de813370e13bda8' (2023-09-02)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/b520a3889b24aaf909e287d19d406862ced9ffc9' (2023-08-07)
→ 'github:oxalica/rust-overlay/98ccb73e6eefc481da6039ee57ad8818d1ca8d56' (2023-09-03)
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-03 12:04:55 -07:00
Rebecca Turner
7b92b595c9
Add devshell
helper ( #378 )
2023-09-03 10:33:10 -07:00
Rebecca Turner
174604795d
Add workaround for cargo-nextest bug ( #376 )
...
Prevents this error:
```
(...)
dyld: Library not loaded: @rpath/libtest-77ee8c29c330e4a3.dylib
Referenced from: /private/tmp/holochain_repo/target/fast-test/deps/hdk_derive-73ec051829ad694a
Reason: image not found
error: creating test list failed
Caused by:
for `hdk_derive::proc-macro/hdk_derive`, running command `/private/tmp/holochain_repo/target/fast-test/deps/hdk_derive-73ec051829ad694a --list --format terse` failed
Caused by:
command ["/private/tmp/holochain_repo/target/fast-test/deps/hdk_derive-73ec051829ad694a", "--list", "--format", "terse"] exited with code <signal 6>
Error: Process completed with exit code 104.
```
https://github.com/nextest-rs/nextest/issues/267
2023-08-30 23:44:00 +00:00
Ivan Petkov
43db881168
various: change cargoExtraArgs
defaults to include --locked
( #373 )
2023-08-27 19:17:58 +00:00
Ivan Petkov
7809d36971
downloadCargoPackageFromGit: resolve symlinks in crate directory ( #367 )
2023-08-12 01:26:37 +00:00
Ivan Petkov
ff2e879b26
update all Cargo.locks ( #364 )
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/4a56ce9727a0c5478a836a0d8a8f641c5b9a3d5f' (2023-08-02)
→ 'github:NixOS/nixpkgs/5068bc8fe943bde3c446326da8d0ca9c93d5a682' (2023-08-07)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/99df4908445be37ddb2d332580365fce512a7dcf' (2023-08-03)
→ 'github:oxalica/rust-overlay/b520a3889b24aaf909e287d19d406862ced9ffc9' (2023-08-07)
2023-08-11 00:13:17 +00:00
Ivan Petkov
8b08e96c9a
inheritCargoArtifactsHook: fix doNotLinkInheritedArtifacts handling ( #357 )
...
* This ensures that when doNotLinkInheritedArtifacts is set, artifact
symlinks are deeply resolved
2023-07-07 23:28:38 +00:00
Ivan Petkov
33cfcdf33b
Fix tests to run on darwin ( #348 )
2023-06-29 23:50:17 +00:00