Skip to content

deno loader 0.3.10 failed reading lockfile during vite build #72

@will-weiss

Description

@will-weiss

On this github actions job running docker buildx build --platform linux/arm64 --no-cache . we see an Error: Failed reading lockfile thrown by https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:272:8. This same command runs on my local mac. The Dockerfile removes the deno.lock and we can see that one was generated after deno install by inspecting it using cat. So we see that deno install --allow-scripts creates a deno.lock file that then fails to parse in deno task build. In the deno.json this is doing vite build.

Any help is appreciated, thank you!

#11 [6/7] RUN deno task build
#11 0.894 Task build NO_EXTERNAL_CONNECT=1 vite build
#11 18.31 error during build:
#11 18.31 Error: Failed reading lockfile at '/app/deno.lock': Unsupported lockfile version ''. Try upgrading Deno or recreating the lockfile
#11 18.31     at __wbg_Error_e83987f665cf5504 (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:481:15)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:4239653)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:3760542)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:874739)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:3103247)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:4174804)
#11 18.31     at <anonymous> (wasm://wasm/0146469a:1:4257264)
#11 18.31     at wasm_bindgen__convert__closures_____invoke__h49aaedff071c5891 (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:272:8)
#11 18.31     at real (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:235:14)
#11 18.31     at ext:core/01_core.js:322:9
#11 ERROR: process "/bin/sh -c deno task build" did not complete successfully: exit code: 1
------
 > [6/7] RUN deno task build:
18.31     at __wbg_Error_e83987f665cf5504 (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:481:15)
18.31     at <anonymous> (wasm://wasm/0146469a:1:4239653)
18.31     at <anonymous> (wasm://wasm/0146469a:1:3760542)
18.31     at <anonymous> (wasm://wasm/0146469a:1:874739)
18.31     at <anonymous> (wasm://wasm/0146469a:1:3103247)
18.31     at <anonymous> (wasm://wasm/0146469a:1:4174804)
18.31     at <anonymous> (wasm://wasm/0146469a:1:4257264)
18.31     at wasm_bindgen__convert__closures_____invoke__h49aaedff071c5891 (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:272:8)
18.31     at real (https://jsr.io/@deno/loader/0.3.10/src/lib/rs_lib.internal.js:235:14)
18.31     at ext:core/01_core.js:322:9
------
Dockerfile:16
--------------------
  14 |     
  15 |     # Build the application
  16 | >>> RUN deno task build
  17 |     EXPOSE 8000
  18 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c deno task build" did not complete successfully: exit code: 1
Error: Process completed with exit code 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions