deno: remove esbuild use in tests, keep denort in a separate output#445232
deno: remove esbuild use in tests, keep denort in a separate output#44523206kellyjac wants to merge 4 commits intoNixOS:masterfrom
Conversation
The version of esbuild needs to exactly match the version deno requires for currently one integration test. https://github.com/evanw/esbuild/blob/195e05c16f03a341390feef38b8ebf17d3075e14/cmd/esbuild/main.go#L206-L214 Updating esbuild in lockstep with deno releases isn't ideal and neither is modifying the deno source and diverging from upstream. A placeholder must be provided or the code which mocks an npm registry will fail for over 260 tests which use it.
Previously `denort` was built but removed from the final output. Now it's available in a separate `rt` output to avoid bloating the main `out` but also prevent rebuilding `deno` just for `denort`.
Deno is restricted by meta.platforms so shouldn't need doCheck to also be restricted to match.
ofalvai
left a comment
There was a problem hiding this comment.
This looks like a fine compromise, thanks for doing the research. Also thank you for the misc cleanups!
|
|
@06kellyjac is this test supposed to work with the fake esbuild we provide? |
|
Since it's just a placeholder file we probably need to skip this too. An alternative would be to have a pinned copy of esbuild but we should also patch deno so it uses our provided copy rather than downloading its own copy. |
|
Mmm, yeah I was looking at dropping this because bundling was pretty officially on the way out, but now it's back in 2.4 we probably need to provide a matching esbuild. |
with lib;Unblocks #423375
Sorry for the delay.
context:
#423375 (comment)
Keeping denort relates to the deno builder work in a separate PR
cc: @ofalvai
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.