Skip to content

[Help] 同步fork到最新后Action运行失败 #394

@Asanatsu

Description

@Asanatsu

描述你遇到的问题

将fork代码同步到最新(Commit 37205bc)后,Action运行失败(Cloudflare和Github两步都失败),手工重新执行多次报错均相同。

Github Action的报错日志如下:

bun install v1.3.1 (89fa0f34)
Resolving dependencies
Resolved, downloaded and extracted [122]

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ @types/[email protected]
+ @types/[email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected] (v4.0.1 available)
+ [email protected]
+ [email protected] (v11.1.2 available)

2188 packages installed [10.04s]
error: Cannot find package 'strip-indent' from '/home/runner/work/Rin/Rin/Rin/scripts/migrator.ts'

Bun v1.3.1 (Linux x64 baseline)
Error: Process completed with exit code 1.

Cloudflare Pages的报错日志如下:

Cloning repository...
From https://github.com/Asanatsu/Rin
 * branch            37205bcc348070a55047ee8b1351c958e945ddcd -> FETCH_HEAD

HEAD is now at 37205bc fix: #223


Using v2 root directory strategy
Success: Finished cloning repository files
Checking for configuration in a Wrangler configuration file (BETA)

No wrangler.toml file found. Continuing.
Preparing [email protected] for immediate activation...
Preparing [email protected] for immediate activation...
Running user-defined pre-build script: asdf install bun latest && asdf global bun latest && bun i
Downloading Bun v1.3.1...
Archive:  /tmp/asdf-bun.9nTm/bun.zip
  inflating: /opt/buildhome/.asdf/downloads/bun/1.3.1/bun  
Installing Bun v1.3.1...
Bun v1.3.1 is installed successfully!
bun install v1.3.1 (89fa0f34)
Resolving dependencies
Resolved, downloaded and extracted [122]
Saved lockfile

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ @types/[email protected]
+ @types/[email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected] (v4.0.1 available)
+ [email protected]
+ [email protected] (v11.1.2 available)

2188 packages installed [48.60s]
Detected the following tools from environment: [email protected], [email protected]
SKIP_DEPENDENCY_INSTALL is present in environment. Skipping automatic dependency installation.
Executing user command: bun b
$ turbo build

• Packages in scope: client, rin-server
• Running build in 2 packages
• Remote caching disabled
client:build: cache miss, executing 695800ae723e5b2a
client:build: $ tsc && vite build
client:build: src/page/writing.tsx(4,22): error TS2307: Cannot find module 'monaco-editor' or its corresponding type declarations.
client:build: src/remark/remarkMermaid.ts(1,29): error TS2307: Cannot find module 'unified' or its corresponding type declarations.
client:build: src/remark/remarkMermaid.ts(2,36): error TS2307: Cannot find module 'mdast' or its corresponding type declarations.
client:build: ../server/src/utils/jwt.ts(11,27): error TS2307: Cannot find module '@sinclair/typebox' or its corresponding type declarations.
client:build: ../server/src/utils/jwt.ts(12,38): error TS2307: Cannot find module '@sinclair/typebox' or its corresponding type declarations.
client:build: ERROR: command finished with error: command (/opt/buildhome/repo/client) /opt/buildhome/.asdf/installs/bun/1.3.1/bin/bun run build exited (2)
client#build: command (/opt/buildhome/repo/client) /opt/buildhome/.asdf/installs/bun/1.3.1/bin/bun run build exited (2)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    5.601s 
Failed:    client#build

 ERROR  run failed: command  exited (2)
Failed: Error while executing user command. Exited with error code: 2
Failed: build command exited with code: 1
Failed: error occurred while running build command

复现步骤

  1. 点击Sync fork
  2. 等待自动执行Action

期望行为

希望能指导一下如何操作解决,感谢

截图

Image Image

额外信息

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions