Closed starsareintherose closed 8 months ago
✅ Answered
The issue actually turned out to be a question or a misunderstanding, and it has been answered or resolved.
This is an automatic reply by the bot.
I think this should be an upstream issue.
Please look solution at https://github.com/launchbadge/sqlx
@EYHN this issue should not have been closed. It couldn't be a SQLx bug. Take a look at the other errors. It's failing on unconditional re-exports from within the same crate. It's very clear that something has gone catastrophically wrong with the build process itself.
Full log can be seen here
==> Starting build()...
➤ YN0000: · Yarn 4.0.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 808ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0060: │ @blocksuite/global is listed by your project with version 0.0.0-20231116023037-31273bb7-nightly, which doesn't satisfy what @affine/env (p70107) requests (0.0.0-20230409084303-221991d4-nightly).
➤ YN0060: │ @blocksuite/icons is listed by your project with version 2.1.35, which doesn't satisfy what @affine/component (p363b8) requests (2.1.34).
➤ YN0060: │ @blocksuite/icons is listed by your project with version 2.1.35, which doesn't satisfy what @affine/component (pb81ed) and other dependencies request (2.1.34).
➤ YN0060: │ jotai is listed by your project with version 2.4.3, which doesn't satisfy what jotai-scope (pf7671) requests (>=2.5.0).
➤ YN0002: │ @affine-legacy/0.6.1-beta.1@workspace:tests/affine-legacy/0.6.1-beta.1 doesn't provide async-call-rpc (p488f5), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.6.1-beta.1@workspace:tests/affine-legacy/0.6.1-beta.1 doesn't provide yjs (p6a2d6), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.7.0-canary.18@workspace:tests/affine-legacy/0.7.0-canary.18 doesn't provide async-call-rpc (p84890), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.7.0-canary.18@workspace:tests/affine-legacy/0.7.0-canary.18 doesn't provide yjs (p52047), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.8.0-canary.7@workspace:tests/affine-legacy/0.8.0-canary.7 doesn't provide async-call-rpc (p6c034), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.8.0-canary.7@workspace:tests/affine-legacy/0.8.0-canary.7 doesn't provide yjs (pa659c), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.8.4@workspace:tests/affine-legacy/0.8.4 doesn't provide async-call-rpc (pc8fb1), requested by @blocksuite/store.
➤ YN0002: │ @affine-legacy/0.8.4@workspace:tests/affine-legacy/0.8.4 doesn't provide yjs (p94d2c), requested by @blocksuite/store.
➤ YN0002: │ @affine-test/affine-migration@workspace:tests/affine-migration doesn't provide async-call-rpc (p5dc6b), requested by @blocksuite/store.
➤ YN0002: │ @affine-test/affine-migration@workspace:tests/affine-migration doesn't provide yjs (pe960c), requested by @blocksuite/store.
➤ YN0002: │ @affine/cli@workspace:tools/cli [a367a] doesn't provide typescript (pc0e9f), requested by @magic-works/i18n-codegen.
➤ YN0002: │ @affine/cli@workspace:tools/cli doesn't provide @types/node (p52623), requested by ts-node.
➤ YN0002: │ @affine/cli@workspace:tools/cli doesn't provide typescript (p34b48), requested by @magic-works/i18n-codegen.
➤ YN0002: │ @affine/cli@workspace:tools/cli doesn't provide typescript (p5208d), requested by ts-node.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [108da] doesn't provide next (padbf1), requested by next-themes.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [1e1ce] doesn't provide next (pf27f4), requested by next-themes.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [39b55] doesn't provide @blocksuite/block-std (pe2ff9), requested by @blocksuite/lit.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [39b55] doesn't provide async-call-rpc (p82f18), requested by @blocksuite/store.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [39b55] doesn't provide next (p1a7b0), requested by next-themes.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [4d842] doesn't provide @blocksuite/block-std (pfa12d), requested by @blocksuite/lit.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [4d842] doesn't provide async-call-rpc (p1e74f), requested by @blocksuite/store.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [4d842] doesn't provide next (pc6b9f), requested by next-themes.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [f5db3] doesn't provide @blocksuite/block-std (pe599a), requested by @blocksuite/lit.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [f5db3] doesn't provide async-call-rpc (p715a8), requested by @blocksuite/store.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component [f5db3] doesn't provide next (p61c7c), requested by next-themes.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component doesn't provide @blocksuite/block-std (pb4888), requested by @blocksuite/lit.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component doesn't provide async-call-rpc (p908cf), requested by @blocksuite/store.
➤ YN0002: │ @affine/component@workspace:packages/frontend/component doesn't provide next (p3feca), requested by next-themes.
➤ YN0002: │ @affine/copilot-plugin@workspace:packages/plugins/copilot [72c38] doesn't provide @radix-ui/react-avatar (p33778), requested by @toeverything/components.
➤ YN0002: │ @affine/copilot-plugin@workspace:packages/plugins/copilot doesn't provide @radix-ui/react-avatar (pb1d9e), requested by @toeverything/components.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide @radix-ui/react-avatar (pd64cd), requested by @toeverything/components.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide @toeverything/infra (p6c243), requested by @affine/env.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide @types/react (p7c218), requested by @blocksuite/icons.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide clsx (pa618e), requested by @toeverything/components.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide next (p34736), requested by next-themes.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide next (p9b631), requested by next-auth.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide postcss (p82a54), requested by cssnano.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide postcss (p8f46d), requested by postcss-loader.
➤ YN0002: │ @affine/core@workspace:packages/frontend/core doesn't provide react-refresh (pb9c1a), requested by @pmmmwh/react-refresh-webpack-plugin.
➤ YN0002: │ @affine/electron@workspace:packages/frontend/electron doesn't provide @blocksuite/block-std (pa47af), requested by @blocksuite/lit.
➤ YN0002: │ @affine/electron@workspace:packages/frontend/electron doesn't provide @types/node (p11852), requested by ts-node.
➤ YN0002: │ @affine/electron@workspace:packages/frontend/electron doesn't provide typescript (pb7748), requested by ts-node.
➤ YN0002: │ @affine/env@workspace:packages/common/env [1e1ce] doesn't provide async-call-rpc (pabdcb), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [1e1ce] doesn't provide yjs (pdd59b), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [36d80] doesn't provide async-call-rpc (p0d56d), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [36d80] doesn't provide yjs (pabd3b), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [62a5c] doesn't provide async-call-rpc (pde77a), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [62a5c] doesn't provide yjs (pcab39), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [72c38] doesn't provide async-call-rpc (p84648), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env [72c38] doesn't provide yjs (pf7d97), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env doesn't provide async-call-rpc (p2c6d0), requested by @blocksuite/store.
➤ YN0002: │ @affine/env@workspace:packages/common/env doesn't provide yjs (pd304f), requested by @blocksuite/store.
➤ YN0002: │ @affine/graphql@workspace:packages/frontend/graphql doesn't provide @affine/templates (p1d4ff), requested by @affine/env.
➤ YN0002: │ @affine/graphql@workspace:packages/frontend/graphql doesn't provide @toeverything/infra (pbae68), requested by @affine/env.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide @radix-ui/react-avatar (pf4eea), requested by @toeverything/components.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide @types/react (p3b141), requested by @blocksuite/icons.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide clsx (pf1699), requested by @toeverything/components.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide react (pa13b1), requested by @toeverything/components.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide react (pa8b2a), requested by @blocksuite/icons.
➤ YN0002: │ @affine/hello-world-plugin@workspace:packages/plugins/hello-world doesn't provide react-dom (p8fe50), requested by @toeverything/components.
➤ YN0002: │ @affine/i18n@workspace:packages/frontend/i18n doesn't provide react (p02123), requested by react-i18next.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide @radix-ui/react-avatar (p3c124), requested by @toeverything/components.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide @types/react (p7ea99), requested by @blocksuite/icons.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide react (p1827b), requested by swr.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide react (p37984), requested by react-error-boundary.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide react (p8ca60), requested by @toeverything/components.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide react (pe5752), requested by @blocksuite/icons.
➤ YN0002: │ @affine/image-preview-plugin@workspace:packages/plugins/image-preview doesn't provide react-dom (p7993a), requested by @toeverything/components.
➤ YN0002: │ @affine/monorepo@workspace:. doesn't provide react (pbce36), requested by @testing-library/react.
➤ YN0002: │ @affine/monorepo@workspace:. doesn't provide react-dom (peb276), requested by @testing-library/react.
➤ YN0002: │ @affine/monorepo@workspace:. doesn't provide webpack (pd55c4), requested by @vanilla-extract/webpack-plugin.
➤ YN0002: │ @affine/outline-plugin@workspace:packages/plugins/outline doesn't provide @radix-ui/react-avatar (pb784f), requested by @toeverything/components.
➤ YN0002: │ @affine/outline-plugin@workspace:packages/plugins/outline doesn't provide @types/react (p253e6), requested by @blocksuite/icons.
➤ YN0002: │ @affine/outline-plugin@workspace:packages/plugins/outline doesn't provide clsx (p49973), requested by @toeverything/components.
➤ YN0002: │ @affine/plugin-cli@workspace:tools/plugin-cli doesn't provide @types/node (pc46e9), requested by ts-node.
➤ YN0002: │ @affine/plugin-cli@workspace:tools/plugin-cli doesn't provide typescript (pfc468), requested by ts-node.
➤ YN0002: │ @affine/plugin-cli@workspace:tools/plugin-cli doesn't provide vite (p9c870), requested by @vitejs/plugin-vue.
➤ YN0002: │ @affine/sdk@workspace:packages/common/sdk doesn't provide async-call-rpc (pe6ae7), requested by @blocksuite/store.
➤ YN0002: │ @affine/sdk@workspace:packages/common/sdk doesn't provide typescript (pf4e07), requested by vite-plugin-dts.
➤ YN0002: │ @affine/sdk@workspace:packages/common/sdk doesn't provide yjs (p11abf), requested by @blocksuite/store.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide @opentelemetry/resources (pa4d9b), requested by @google-cloud/opentelemetry-cloud-monitoring-exporter.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide @opentelemetry/resources (pa9526), requested by @google-cloud/opentelemetry-cloud-trace-exporter.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide @opentelemetry/sdk-trace-base (pa218c), requested by @google-cloud/opentelemetry-cloud-trace-exporter.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide @types/inquirer (p052e5), requested by nest-commander.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide next (p9cc2c), requested by next-auth.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide react (pc4253), requested by next-auth.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide react-dom (p89d55), requested by next-auth.
➤ YN0002: │ @affine/server@workspace:packages/backend/server doesn't provide socket.io-adapter (p99274), requested by @socket.io/redis-adapter.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @dnd-kit/core (p1fab4), requested by @dnd-kit/sortable.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/channels (paffd2), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/components (p755bb), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/core-events (pb16d3), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/manager-api (pdd11f), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/preview-api (pd26f3), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @storybook/theming (paa7cd), requested by storybook-addon-react-router-v6.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide @types/react (ped19a), requested by @blocksuite/icons.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide async-call-rpc (pbe697), requested by @blocksuite/store.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide next-auth (p3df97), requested by @tomfreudenberg/next-auth-mock.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide vite (p82bb1), requested by @storybook/react-vite.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide vite (p855c4), requested by @storybook/builder-vite.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide vite (p8d7f2), requested by @vitejs/plugin-react.
➤ YN0002: │ @affine/storybook@workspace:tests/storybook doesn't provide yjs (pf1ca1), requested by @blocksuite/store.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [1e1ce] doesn't provide @affine/templates (p02d0d), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [1e1ce] doesn't provide @toeverything/infra (pb5966), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [1e1ce] doesn't provide next (pcad4e), requested by next-auth.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [57043] doesn't provide @affine/templates (pcb4ec), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [57043] doesn't provide @toeverything/infra (pbe5a6), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [57043] doesn't provide next (pe383c), requested by next-auth.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [7f30c] doesn't provide @affine/templates (p30574), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [7f30c] doesn't provide @toeverything/infra (pc31f6), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace [7f30c] doesn't provide next (pa363c), requested by next-auth.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace doesn't provide @affine/templates (p78c1a), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace doesn't provide @toeverything/infra (p06125), requested by @affine/env.
➤ YN0002: │ @affine/workspace@workspace:packages/frontend/workspace doesn't provide next (p25e2c), requested by next-auth.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [57043] doesn't provide @affine/templates (pa590a), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [57043] doesn't provide @toeverything/infra (p19081), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [57043] doesn't provide react-dom (pa3262), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [5802e] doesn't provide react-dom (p8a6b6), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [62072] doesn't provide react-dom (pcb958), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [6230a] doesn't provide async-call-rpc (p836c3), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [6230a] doesn't provide react-dom (pc0151), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [6230a] doesn't provide yjs (p36796), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [7f30c] doesn't provide @affine/templates (peac94), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [7f30c] doesn't provide @toeverything/infra (p9496f), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [7f30c] doesn't provide react-dom (pa339d), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [8fc0c] doesn't provide @affine/templates (pb79ce), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [8fc0c] doesn't provide @toeverything/infra (p13559), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [8fc0c] doesn't provide react-dom (p1ec23), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks [8fcbb] doesn't provide react-dom (p3575c), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks doesn't provide @affine/templates (p99815), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks doesn't provide @toeverything/infra (p92cfc), requested by @affine/env.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks doesn't provide async-call-rpc (p668e7), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks doesn't provide react-dom (p2b58e), requested by @testing-library/react.
➤ YN0002: │ @toeverything/hooks@workspace:packages/frontend/hooks doesn't provide yjs (p820fe), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [177e8] doesn't provide @blocksuite/block-std (p5e100), requested by @blocksuite/lit.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [177e8] doesn't provide react-dom (pac18e), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [177e8] doesn't provide typescript (p76619), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [57043] doesn't provide react-dom (p959fb), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [57043] doesn't provide typescript (p1885b), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [72c38] doesn't provide react-dom (p43532), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [72c38] doesn't provide typescript (p6c2f7), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [7f30c] doesn't provide react-dom (pca7dd), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [7f30c] doesn't provide typescript (pcf3a6), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [8fc0c] doesn't provide react-dom (p22af1), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [8fc0c] doesn't provide typescript (p6a904), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [a367a] doesn't provide @blocksuite/block-std (pd7e06), requested by @blocksuite/lit.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [a367a] doesn't provide react-dom (p3ff40), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra [a367a] doesn't provide typescript (pf67a2), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra doesn't provide @blocksuite/block-std (pce6e2), requested by @blocksuite/lit.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra doesn't provide react-dom (p97e93), requested by @testing-library/react.
➤ YN0002: │ @toeverything/infra@workspace:packages/common/infra doesn't provide typescript (p0b554), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/y-indexeddb@workspace:packages/common/y-indexeddb [62072] doesn't provide async-call-rpc (p579c8), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/y-indexeddb@workspace:packages/common/y-indexeddb [62072] doesn't provide typescript (p19e9b), requested by vite-plugin-dts.
➤ YN0002: │ @toeverything/y-indexeddb@workspace:packages/common/y-indexeddb doesn't provide async-call-rpc (pc01cd), requested by @blocksuite/store.
➤ YN0002: │ @toeverything/y-indexeddb@workspace:packages/common/y-indexeddb doesn't provide typescript (p4128e), requested by vite-plugin-dts.
➤ YN0002: │ @types/affine__env@workspace:tools/@types/env doesn't provide @affine/templates (pf24fe), requested by @affine/env.
➤ YN0002: │ y-provider@workspace:packages/common/y-provider [8f2ff] doesn't provide async-call-rpc (p26f71), requested by @blocksuite/store.
➤ YN0002: │ y-provider@workspace:packages/common/y-provider [8f2ff] doesn't provide typescript (pab5fd), requested by vite-plugin-dts.
➤ YN0002: │ y-provider@workspace:packages/common/y-provider doesn't provide async-call-rpc (p4a1f2), requested by @blocksuite/store.
➤ YN0002: │ y-provider@workspace:packages/common/y-provider doesn't provide typescript (p788e4), requested by vite-plugin-dts.
➤ YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ 3055 packages were added to the project (+ 395.33 MiB).
➤ YN0000: └ Completed in 43s 393ms
➤ YN0000: ┌ Link step
➤ YN0007: │ electron@npm:27.0.0 must be built because it never has been before or the last one failed
➤ YN0007: │ msw@npm:1.3.2 [a367a] must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ @nestjs/core@npm:10.2.7 [c1224] must be built because it never has been before or the last one failed
➤ YN0007: │ @napi-rs/image-linux-x64-gnu@npm:1.7.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/engines@npm:5.4.2 must be built because it never has been before or the last one failed
➤ YN0007: │ @apollo/protobufjs@npm:1.2.7 must be built because it never has been before or the last one failed
➤ YN0007: │ protobufjs@npm:7.2.5 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.17.6 must be built because it never has been before or the last one failed
➤ YN0007: │ @swc/core@npm:1.3.93 [177e8] must be built because it never has been before or the last one failed
➤ YN0007: │ @parcel/watcher@npm:2.0.4 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.17.19 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.5 must be built because it never has been before or the last one failed
➤ YN0007: │ electron-winstaller@npm:5.1.0 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js-pure@npm:3.33.0 must be built because it never has been before or the last one failed
➤ YN0007: │ workerd@npm:1.20231025.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @sentry/cli@npm:2.21.2 must be built because it never has been before or the last one failed
➤ YN0007: │ vue-demi@npm:0.14.6 [fbb8b] must be built because it never has been before or the last one failed
➤ YN0007: │ @affine/graphql@workspace:packages/frontend/graphql must be built because it never has been before or the last one failed
➤ YN0007: │ nx@npm:16.10.0 [a367a] must be built because it never has been before or the last one failed
➤ YN0007: │ prisma@npm:5.4.2 must be built because it never has been before or the last one failed
➤ YN0007: │ @affine/monorepo@workspace:. must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/client@npm:5.4.2 [c1224] must be built because it never has been before or the last one failed
➤ YN0007: │ @affine/server@workspace:packages/backend/server must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 45s 49ms
➤ YN0000: · Done with warnings in 1m 30s
Compiling libc v0.2.149
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling version_check v0.9.4
Compiling futures-core v0.3.29
Compiling serde v1.0.190
Compiling typenum v1.17.0
Compiling cfg-if v1.0.0
Compiling parking_lot_core v0.9.9
Compiling generic-array v0.14.7
Compiling lock_api v0.4.11
Compiling once_cell v1.18.0
Compiling ahash v0.8.3
Compiling num-traits v0.2.17
Compiling slab v0.4.9
Compiling crossbeam-utils v0.8.16
Compiling futures-task v0.3.29
Compiling memchr v2.6.4
Compiling futures-util v0.3.29
Compiling scopeguard v1.2.0
Compiling crossbeam-queue v0.3.8
Compiling futures-channel v0.3.29
Compiling thiserror v1.0.50
Compiling quote v1.0.33
Compiling rustls v0.21.7
Compiling smallvec v1.11.1
Compiling vcpkg v0.2.15
Compiling syn v2.0.38
Compiling cc v1.0.83
Compiling pkg-config v0.3.27
Compiling spin v0.5.2
Compiling pin-project-lite v0.2.13
Compiling untrusted v0.7.1
Compiling getrandom v0.2.10
Compiling paste v1.0.14
Compiling futures-sink v0.3.29
Compiling tinyvec_macros v0.1.1
Compiling tinyvec v1.6.0
Compiling parking_lot v0.12.1
Compiling allocator-api2 v0.2.16
Compiling crypto-common v0.1.6
Compiling hashbrown v0.14.2
Compiling block-buffer v0.10.4
Compiling signal-hook-registry v1.4.1
Compiling unicode-normalization v0.1.22
Compiling mio v0.8.8
Compiling ring v0.16.20
Compiling libsqlite3-sys v0.26.0
Compiling num_cpus v1.16.0
Compiling socket2 v0.5.5
Compiling minimal-lexical v0.2.1
Compiling serde_json v1.0.108
Compiling bytes v1.5.0
Compiling percent-encoding v2.3.0
Compiling unicode-bidi v0.3.13
Compiling unicode-segmentation v1.10.1
Compiling futures-io v0.3.29
Compiling pin-utils v0.1.0
Compiling syn v1.0.109
Compiling idna v0.4.0
Compiling nom v7.1.3
Compiling form_urlencoded v1.2.0
Compiling digest v0.10.7
Compiling tracing-core v0.1.32
Compiling unicode_categories v0.1.1
Compiling itoa v1.0.9
Compiling ryu v1.0.15
Compiling log v0.4.20
Compiling rustix v0.38.20
Compiling crc-catalog v2.2.0
Compiling cpufeatures v0.2.10
Compiling base64 v0.21.4
Compiling iana-time-zone v0.1.58
Compiling equivalent v1.0.1
Compiling indexmap v2.0.2
Compiling chrono v0.4.31
Compiling rustls-pemfile v1.0.3
Compiling sha2 v0.10.8
Compiling crc v3.0.1
Compiling rustls-webpki v0.101.6
Compiling sct v0.7.0
Compiling url v2.4.1
Compiling webpki-roots v0.24.0
Compiling atoi v2.0.0
Compiling hashlink v0.8.4
Compiling futures-intrusive v0.5.0
Compiling spin v0.9.8
Compiling dotenvy v0.15.7
Compiling event-listener v2.5.3
Compiling linux-raw-sys v0.4.10
Compiling bitflags v2.4.1
Compiling byteorder v1.5.0
Compiling hex v0.4.3
Compiling flume v0.11.0
Compiling futures-executor v0.3.29
Compiling serde_derive v1.0.190
Compiling tokio-macros v2.1.0
Compiling tracing-attributes v0.1.27
Compiling thiserror-impl v1.0.50
Compiling tokio v1.33.0
Compiling tracing v0.1.40
Compiling fastrand v2.0.1
Compiling tempfile v3.8.0
Compiling heck v0.4.1
Compiling tokio-stream v0.1.14
Compiling either v1.9.0
Compiling itertools v0.11.0
Compiling aho-corasick v1.1.2
Compiling sqlformat v0.2.2
Compiling regex-syntax v0.8.2
Compiling semver v1.0.20
Compiling sqlx-core v0.7.2
Compiling regex-automata v0.4.3
Compiling sqlx-sqlite v0.7.2
Compiling rand_core v0.6.4
Compiling anyhow v1.0.75
Compiling sqlx-macros-core v0.7.2
Compiling ppv-lite86 v0.2.17
Compiling rand_chacha v0.3.1
Compiling regex v1.10.2
Compiling sqlx-macros v0.7.2
Compiling convert_case v0.6.0
Compiling inotify-sys v0.1.5
Compiling dotenv v0.15.0
Compiling bitflags v1.3.2
Compiling same-file v1.0.6
Compiling napi-build v2.0.1
Compiling affine_schema v0.0.0 (/build/affine/src/AFFiNE/packages/frontend/native/schema)
Compiling walkdir v2.4.0
Compiling inotify v0.9.6
Compiling napi-derive-backend v1.0.52
Compiling rand v0.8.5
Compiling crossbeam-channel v0.5.8
Compiling sqlx v0.7.2
error: /build/affine/src/AFFiNE/target/release/deps/libsqlx_macros-41c7f99c44efe00e.so: undefined symbol: sqlite3_unlock_notify
--> /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-0.7.2/src/lib.rs:50:1
|
50 | pub extern crate sqlx_macros;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0432]: unresolved imports `self::encode::Encode`, `self::decode::Decode`, `super::Decode`, `super::Encode`, `super::FromRow`, `super::Type`
--> /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-0.7.2/src/lib.rs:116:9
|
116 | pub use self::encode::Encode;
| ^^^^^^^^^^^^^^^^^^^^
...
127 | pub use self::decode::Decode;
| ^^^^^^^^^^^^^^^^^^^^
...
141 | pub use super::Decode;
| ^^^^^^^^^^^^^
142 | pub use super::Encode;
| ^^^^^^^^^^^^^
143 | pub use super::Executor;
144 | pub use super::FromRow;
| ^^^^^^^^^^^^^^
...
148 | pub use super::Type;
| ^^^^^^^^^^^
For more information about this error, try `rustc --explain E0432`.
error: could not compile `sqlx` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
Internal Error: Command failed: cargo build --release
at checkExecSyncError (node:child_process:890:11)
at Object.execSync (node:child_process:962:15)
at BuildCommand.<anonymous> (/build/affine/src/AFFiNE/node_modules/@napi-rs/cli/scripts/index.js:11515:30)
at Generator.next (<anonymous>)
at /build/affine/src/AFFiNE/node_modules/@napi-rs/cli/scripts/index.js:3552:69
at new Promise (<anonymous>)
at __awaiter$1 (/build/affine/src/AFFiNE/node_modules/@napi-rs/cli/scripts/index.js:3548:10)
at BuildCommand.execute (/build/affine/src/AFFiNE/node_modules/@napi-rs/cli/scripts/index.js:11292:16)
at BuildCommand.validateAndExecute (/build/affine/src/AFFiNE/node_modules/@napi-rs/cli/scripts/index.js:2113:37)
==> ERROR: A failure occurred in build().
Aborting...
Does this issue?
extra/sqlx-cli 0.7.3-1
Command-line utility for SQLx, the Rust SQL toolkit
extra/npm 10.5.0-1
A package manager for JavaScript
That's a completely different error.
Sorry, that's my another try, I've updated it
@EYHN Could you reopen it?
It seems that when executing the sqlx procedural macros, the error occurs undefined symbol: sqlite3_unlock_notify
Yeah I know, the report said that
By looking at the source code, it seems that the procedural macro of sqlx will call sqlite at runtime, and according to the default configuration of its upstream libsqlite3-sys, it will use sqlite3 in your system.
Do you have sqlite3 installed on your system?
Of course, I install both sqlite 3.45.2 and sqlx-cli 0.7.3
Sorry, I don't have an archlinux machine, but I used the archlinux docker image and did not reproduce the error you described.
Below is my Dockerfile, which runs smoothly
FROM archlinux/archlinux:base-devel
SHELL ["/bin/bash", "-c"]
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN pacman -Syu
RUN pacman -S nodejs-lts-iron npm git --noconfirm
RUN npm install -g yarn
RUN git clone https://github.com/toeverything/AFFiNE.git
WORKDIR AFFiNE
RUN yarn install
RUN yarn workspace @affine/native build
RUN yarn workspace @affine/storage build
Our rust package can be built successfully in both our CI and devcontainers, so I guess this error may be related to the sqlite installed in your system.
No, don't use curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
and npm install -g yarn
, plz use pacman -S --noconfirm rust yarn
, also git check out the version
based on the building docs, you should use nodejs-lts-hydrogen instead of nodejs-lts-iron
No difference, cannot reproduce error
You haven't did so... I always build in clean chroot, so it should be repeatable
I did, you can try run this
FROM archlinux/archlinux:base-devel
SHELL ["/bin/bash", "-c"]
RUN pacman -Syu
RUN pacman -S nodejs-lts-hydrogen npm git rust yarn --noconfirm
RUN git clone https://github.com/toeverything/AFFiNE.git
WORKDIR AFFiNE
RUN git checkout tags/v0.13.1
RUN yarn install
RUN yarn workspace @affine/native build
RUN yarn workspace @affine/storage build
the tag is v0.13.1
instead of tags/v0.13.1
, so it's strange that you checkout tags/v0.13.1
, I'm sorry, but this is a point
I guess this is a devtools rustflags issue, thanks a lot
By looking at the source code, it seems that the procedural macro of sqlx will call sqlite at runtime, and according to the default configuration of its upstream libsqlite3-sys, it will use sqlite3 in your system.
Do you have sqlite3 installed on your system?
We enable the bundled
feature of libsqlite3-sys
to simplify building. It will build and statically link SQLite.
Okay, thanks a lot, hopefully, it'll solve the issue, I am still not sure why this can't be build under devtools and local machine but okay in docker
I also encountered a similar problem. I just found out that sqlx does not support the build flag "-flto=auto" (Link Time Optimization, LTO) which is enabled by default by the Arch Linux package build system (makepkg tool). It's necessary to disable this compile flag during the build of sqlx by adding the build configuration "options=('!lto')" to the PKGBUILD script for the package. Once this is done, the package builds normally, without errors.
The discussion about the mentioned issue can be viewed at: ffplayout/ffplayout#580
What happened?
git clone and checkout the 0.13.1
use
get the output
Distribution version
Linux
What browsers are you seeing the problem on if you're using web version?
Other
Are you self-hosting?
Relevant log output
No response
Anything else?