Title: fix(java): 将 libc 依赖限定为 Unix(#19) by lithe-support[bot] · Pull Request #44 · Lithe-IDEA/lithe-plugin-java · GitHub
Open Graph Title: fix(java): 将 libc 依赖限定为 Unix(#19) by lithe-support[bot] · Pull Request #44 · Lithe-IDEA/lithe-plugin-java
X Title: fix(java): 将 libc 依赖限定为 Unix(#19) by lithe-support[bot] · Pull Request #44 · Lithe-IDEA/lithe-plugin-java
Description: Closes #19 根因 libc 在 backend/Cargo.toml 的跨平台依赖中声明,但后端仅在 backend/src/project_settings.rs 的 #[cfg(unix)] 路径使用 libc::O_NOFOLLOW。Windows 构建会看到无用依赖并产生警告。 改动 将 libc = "0.2" 移到 [target.'cfg(unix)'.dependencies]。 不修改源码逻辑和 Cargo.lock:Unix 构建仍保留依赖;Windows 目标不再把 libc 作为此 crate 的直接依赖。 验证 已在本地 macOS(arm64)复核并运行 CI 等价检查: 全仓库检索 libc:仅 backend/src/project_settings.rs 的 #[cfg(unix)] 分支调用 libc::O_NOFOLLOW。 cargo metadata --locked --filter-platform x86_64-pc-windows-msvc vs aarch64-apple-darwin:lithe-java-backend 解析依赖中,Windows 目标不再包含 libc,macOS 目标保留 libc。 cargo fmt --all --check:通过 cargo clippy --workspace --all-targets --locked -- -D warnings:通过 cargo test --workspace --locked:463 个测试全部通过(lithe-java-backend 单元测试 165、repository_pins 10、session 4、lithe-java-domain 单元测试 284) node --test --test-timeout=60000 scripts/package/*.test.mjs:11/11 通过 node --test --test-timeout=15000 scripts/compiler/process.test.mjs:2/2 通过 scripts/verify-sdk-lock.sh --download:通过(Verified manifest and 1 translations against Core 0b6da2725ded74de7c3b62b49d12c1947dc0a38a) 注:本地 Homebrew Rust 1.97.1 未安装 x86_64-pc-windows-msvc 标准库目标,未在本地执行 Windows 原生/交叉编译。 这是配置级修复,不涉及 UI 截图或用户数据。
Open Graph Description: Closes #19 根因 libc 在 backend/Cargo.toml 的跨平台依赖中声明,但后端仅在 backend/src/project_settings.rs 的 #[cfg(unix)] 路径使用 libc::O_NOFOLLOW。Windows 构建会看到无用依赖并产生警告。 改动 将 libc = "0.2" 移到 [target.'cfg...
X Description: Closes #19 根因 libc 在 backend/Cargo.toml 的跨平台依赖中声明,但后端仅在 backend/src/project_settings.rs 的 #[cfg(unix)] 路径使用 libc::O_NOFOLLOW。Windows 构建会看到无用依赖并产生警告。 改动 将 libc = "0.2" 移到 [target....
Opengraph URL: https://github.com/Lithe-IDEA/lithe-plugin-java/pull/44
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4bfe11fc-d99e-ef4c-ee18-fd297046e7ea |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8148:1913E0:26F4E4C:3676F7F:6B0712F1 |
| html-safe-nonce | b85f6e47629e3fd0756912b57a5865a825b5ed95c7c6b6d03ecf3b1acfc5509c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTQ4OjE5MTNFMDoyNkY0RTRDOjM2NzZGN0Y6NkIwNzEyRjEiLCJ2aXNpdG9yX2lkIjoiNTk3NjAzMTYyMzU5NzQ2MjI1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5f93837ace8cb93afe59c0c7b27e6d208dbd33ecf963065553bf68f65aa5f6e6 |
| hovercard-subject-tag | pull_request:5449907041 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Lithe-IDEA/lithe-plugin-java/pull/44/files |
| twitter:image | https://avatars.githubusercontent.com/u/159525154?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/159525154?s=400&v=4 |
| og:image:alt | Closes #19 根因 libc 在 backend/Cargo.toml 的跨平台依赖中声明,但后端仅在 backend/src/project_settings.rs 的 #[cfg(unix)] 路径使用 libc::O_NOFOLLOW。Windows 构建会看到无用依赖并产生警告。 改动 将 libc = "0.2" 移到 [target.'cfg... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9aaa1abe1aaef39a8543ab08df7a776c3243275815d741d29afa7b02148ca05e |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Lithe-IDEA/lithe-plugin-java git https://github.com/Lithe-IDEA/lithe-plugin-java.git |
| octolytics-dimension-user_id | 340144206 |
| octolytics-dimension-user_login | Lithe-IDEA |
| octolytics-dimension-repository_id | 1446370282 |
| octolytics-dimension-repository_nwo | Lithe-IDEA/lithe-plugin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1446370282 |
| octolytics-dimension-repository_network_root_nwo | Lithe-IDEA/lithe-plugin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c43783771de038e2c401dd343799000e8d1253 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width