DavHau
e5d0e9cdb0
fix comment python discoverer
2022-05-06 15:47:47 +02:00
dusk
aaa946287e
refactor(translator/cargo-lock): dont add name and version to crates-io source ( #142 )
2022-05-05 22:53:46 +03:00
dusk
d9fbf0d0a8
tests: add cargo-lock translator test with git dependencies ( #140 )
2022-05-05 00:58:26 +03:00
Yusuf Bera Ertan
3c5bf628ef
fix(fetcher/git): handle ref checking correctly
2022-05-04 22:39:54 +03:00
Yusuf Bera Ertan
1b79f68d98
fix(translator/cargo-lock): dont assume parsed.type exists, use null if it doesnt
2022-05-04 20:38:11 +03:00
dusk
8966d32215
feat: allow ref to be specified in git source ( #137 )
...
* feat: allow ref to be specified in git source
* feat(translator/cargo-lock): add ref to git source if one is provided
* refactor(fetcher/git): also check for null for ref
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
* refactor(fetcher/git): move ref check for rev to a let in to avoid recomputing it
* refactor(fetcher/git): do null check for inp.ref in refAndRev
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2022-05-03 21:23:50 +02:00
Yusuf Bera Ertan
c807bf85af
fix(translator/cargo-lock): try to get crates-io checksum from the metadata table of a cargo-lock, if it exists
2022-05-03 06:19:53 +03:00
Yusuf Bera Ertan
5a4076a881
fix(translator/cargo-lock): attempt to fix dep entry parsing bug
2022-05-03 05:57:00 +03:00
Yusuf Bera Ertan
a2cbbb576c
feat: expose makeOutputsForDreamLock
2022-05-02 13:05:55 +03:00
Gérald Lelong
8df4f0beee
don't mv ../.cargo/config if it doesn't exist ( #133 )
2022-04-28 19:33:27 +02:00
dusk
1c8faf4882
Another round of rust fixes ( #130 )
...
* fix(builder/build-rust-package): don't hardcode cargo config path
* refactor(rust): vendor every dependency in cargo lock to fix some build issues, clarify some code
* fix(builder/build-rust-package): cargoCheckFlags -> cargoTestFlags
2022-04-27 11:57:41 +02:00
dusk
c93972bd52
fix(translator/cargo-lock): prioritize workspaceToml for path dependencies ( #128 )
...
* fix(translator/cargo-lock): prioritize workspaceToml for path dependencies
* fix(builder/rust): replace paths with quotation marks so we dont accidentally replace features
2022-04-26 00:10:59 +02:00
dusk
c303f3a754
Attempt to fix #113 ( #115 )
...
* fix(translator/cargo-lock): flatten workspace member paths to fix coerce error
* wip
* get a list of crates in discover and pass to translator
* prevent re-reading directory tree
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
* fix path dependency creation
* use correct attr path
* get subsystemInfo properly
* fix discoverCrates
* default to empty subsystemInfo.crates
* fix replacePathsWithAbsolute
* fix hasAttr usage
* dont put fullPath in subsystemInfo
Co-authored-by: DavHau <hsngrmpf+github@gmail.com>
2022-04-25 01:32:29 +02:00
DavHau
f8796aba28
Merge pull request #127 from happysalada/fix_electron_darwin_hook
...
electron: fix darwin build
2022-04-24 21:05:43 +02:00
DavHau
b68a9ee61c
add: dlib.sanitizePath
2022-04-24 20:40:42 +02:00
happysalada
262e647b67
electron: fix darwin build
2022-04-24 11:25:03 -04:00
DavHau
40d3e16050
improve resolveImpure error message
...
closes #111
2022-04-24 12:46:02 +02:00
DavHau
31c258880c
add unit tests for cargo-lock translator
2022-04-24 12:05:04 +02:00
DavHau
3a293cc914
automatic unit tests for pure translators
...
- translators can now enable unit tests via `generateUnitTestsForProjects`
2022-04-24 12:04:08 +02:00
DavHau
d47b764ef7
refactor: move simpleTranslate2 to dlib
2022-04-23 15:52:46 +02:00
DavHau
60d9308a7b
refactor: wrapPureTranslator2 -> wrapPureTranslator
2022-04-23 14:50:17 +02:00
DavHau
3b81f4e35b
refactor: translatorsV2 -> translators
2022-04-23 14:48:00 +02:00
DavHau
e8410dc566
fix pure translator template
2022-04-23 13:19:13 +02:00
DavHau
2480581482
change config default for packagesDir: packages -> dream2nix-packages
2022-04-22 22:53:02 +02:00
DavHau
74e8474a21
fix: exclude packagesDir and overridesDirs from invalidationHash
2022-04-22 22:45:35 +02:00
DavHau
890183d2c6
remove more legacy translator code
2022-04-20 17:06:58 +02:00
DavHau
0bd073908f
fix typo: aggregates -> aggregated
2022-04-20 16:59:12 +02:00
DavHau
34f1ff3e23
remove deprecated interfaces:
...
- makeOutputs
- translators.translators
2022-04-20 16:58:38 +02:00
DavHau
feb7eabd0c
fixup cargo-lock translator
2022-04-17 14:42:48 +02:00
DavHau
2331a0aa02
fix value is a string
error when overriding sources
2022-04-17 14:42:37 +02:00
Yusuf Bera Ertan
2eb9461868
feat: port cargo lock translator to simpleTranslate2
2022-04-16 14:03:33 +03:00
DavHau
25d8bf5125
start moving crago-lock to translator v2 interface
2022-04-15 01:16:32 +02:00
DavHau
e9b336953a
Merge branch 'main' into cargo-lock-subpackages
2022-04-15 00:34:25 +02:00
DavHau
8eebb32a52
update translator templates
2022-04-14 23:58:40 +02:00
Yusuf Bera Ertan
07c7d7d2dc
fix: make cargo-lock translator handle discovered project path deps seperately, handle store path source paths correctly
2022-04-12 06:29:49 +03:00
Yusuf Bera Ertan
1cca528ec6
fix(translator/cargo-lock): filter out root member (.) since we already parse this
2022-04-10 17:53:25 +03:00
Yusuf Bera Ertan
aa6099ecf2
feat(translator/cargo-lock): use discoveredProjects to find dependencies that are outside of a packages source
2022-04-10 17:22:58 +03:00
DavHau
e939aa6810
fix: rust source path self reference
...
fixes #107
2022-04-04 16:55:08 +01:00
DavHau
be7f4f488d
rust: fallback to relPath if name not in Cargo.toml
2022-04-04 16:34:23 +01:00
DavHau
ecf409e502
ignore peerDependencies for top level package
...
fixes #105
2022-04-04 15:40:47 +01:00
DavHau
0bcb6ec0f5
remove .#resolve
...
(in favor of .#package-name.resolve)
fixes #106
2022-04-04 12:36:45 +01:00
DavHau
0ceb2b95b4
fix: injecting unknown dependency breaks eval
...
fixes #104
2022-04-04 11:52:34 +01:00
tgunnoe
fb232c8cb0
fix: typo workspaceDependencies
2022-03-30 14:54:14 -04:00
tgunnoe
d019c19164
fix: use name attr before workspace path
2022-03-30 14:54:14 -04:00
DavHau
170a157b1f
add comment for filteredRequires in package-lock transl.
2022-03-30 16:46:46 +07:00
DavHau
7afa741704
fix: navigating to relPath in package-json transl.
2022-03-30 16:23:27 +07:00
DavHau
ec30059894
some fixes for package-json and package-lock
...
- fix missing git & ssh in pacakge-json translator
- package-lock: if dependency missing, raise warning instead of error.
2022-03-30 16:17:55 +07:00
DavHau
f2d40e70cb
remove tests-impure
2022-03-28 23:34:56 +07:00
DavHau
502a2fefc5
fix aggregated fetching
2022-03-28 23:20:44 +07:00
DavHau
98ca5ea9bc
treat subsystemInfo
as translatorArgs
2022-03-28 13:53:06 +07:00