crane/lib
Ivan Petkov 00564437f3
Properly handle workspace inheritance in git dependencies (#224)
Crates from git repos are vendored in a flattened directory where each crate shows up at the root of the vendor directory. Since the vendoring step effectively breaks workspace structures, any crates which use workspace inheritance (e.g. package.version.workspace = true will fail to resolve.

To work around this we inspect the crate's workspace manifest (if it exists) and attempt to manually merge the values while copying the contents to the vendor directory.
2023-01-21 16:46:32 -08:00
..
setupHooks inheritCargoArtifactsHook: preserve executable bit of build scripts (#206) 2023-01-04 02:53:38 +00:00
buildDepsOnly.nix Make it easier to build workspaces not at source root (#212) 2023-01-05 04:46:43 +00:00
buildPackage.nix removeReferencesToVendoredSourcesHook: use a single sed invocation (#167) 2022-11-17 17:00:25 -08:00
cargoAudit.nix cargoAudit: use mkCargoDerivation instead of cargoBuild 2022-10-09 09:40:53 -10:00
cargoBuild.nix cargoBuild: do not run tests 2022-10-09 12:56:21 -10:00
cargoClippy.nix cargoClippy: use mkCargoDerivation instead of cargoBuild 2022-10-09 09:40:53 -10:00
cargoDoc.nix Eliminate dead code (#148) 2022-10-23 23:20:22 +00:00
cargoFmt.nix cargoFmt: use mkCargoDerivation instead of cargoBuild 2022-10-09 09:40:53 -10:00
cargoNextest.nix Run nixpkgs-fmt 2022-11-20 16:28:49 -08:00
cargoTarpaulin.nix Eliminate dead code (#148) 2022-10-23 23:20:22 +00:00
cargoTest.nix Add cargoTest for running crate tests (#132) 2022-10-09 21:00:17 +00:00
cleanCargoSource.nix Add cleanCargoSource and filterCargoSources (#110) 2022-09-21 01:27:47 +00:00
cleanCargoToml.nix checks: add tests for building crates using workspace inheritance (#147) 2022-10-23 22:56:18 +00:00
crateNameFromCargoToml.nix Make it easier to build workspaces not at source root (#212) 2023-01-05 04:46:43 +00:00
default.nix Properly handle workspace inheritance in git dependencies (#224) 2023-01-21 16:46:32 -08:00
downloadCargoPackage.nix Allow passing arbitrary fetchurl args per registry (#168) 2022-11-20 16:22:13 -08:00
downloadCargoPackageFromGit.nix Properly handle workspace inheritance in git dependencies (#224) 2023-01-21 16:46:32 -08:00
filterCargoSources.nix Add cleanCargoSource and filterCargoSources (#110) 2022-09-21 01:27:47 +00:00
findCargoFiles.nix Eliminate dead code (#148) 2022-10-23 23:20:22 +00:00
mkCargoDerivation.nix Eliminate dead code (#148) 2022-10-23 23:20:22 +00:00
mkDummySrc.nix mkDummySource: fix build invalidation regression (#195) 2022-12-23 17:06:58 +00:00
registryFromDownloadUrl.nix Run nixpkgs-fmt 2022-11-20 16:28:49 -08:00
registryFromGitIndex.nix Run nixpkgs-fmt 2022-11-20 16:28:49 -08:00
urlForCargoPackage.nix Run nixpkgs-fmt 2022-11-20 16:28:49 -08:00
vendorCargoDeps.nix Stop passing around fromTOML 2022-06-03 02:01:02 +08:00
vendorCargoRegistries.nix Import groupBy from lib not builtins 2022-06-07 14:51:20 -07:00
vendorGitDeps.nix Eliminate dead code (#148) 2022-10-23 23:20:22 +00:00
writeTOML.nix Minor cleanup 2022-06-02 19:49:44 -07:00