Skip to content

Remove stale cdylib build script - #1

Open
ggoodman wants to merge 2 commits into
codex/sandbox-libkrun-2from
codex/remove-stale-cdylib-build-script
Open

Remove stale cdylib build script#1
ggoodman wants to merge 2 commits into
codex/sandbox-libkrun-2from
codex/remove-stale-cdylib-build-script

Conversation

@ggoodman

Copy link
Copy Markdown

Summary

  • update the implicit-init unit test for the current FsDeviceBackend model so the 2.0 integration branch's required unit-test workflow can compile and run
  • remove the obsolete cdylib linker build script now that this branch produces only a Rust library target
  • normalize the lockfile after removing the stale build-script configuration

Root cause

The Sandbox integration changed libkrun from crate-type = ["cdylib", "lib"] to crate-type = ["lib"], but retained a build script that emits cargo:rustc-cdylib-link-arg. Cargo therefore warns that the package has no cdylib target and may reject the configuration in a future release.

Verification

  • exact Cargo warning regression probe
  • cargo fmt --all --check
  • cargo test --locked
  • cargo clippy --locked -- -D warnings

@ggoodman

Copy link
Copy Markdown
Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a5964ff7db

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/libkrun/Cargo.toml
edition = "2024"
description = "A dynamic library providing Virtualization-based process isolation capabilities"
build = "build.rs"
license = "Apache-2.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Sign the commit for DCO

The reviewed commit message has no Signed-off-by: trailer, so it does not satisfy the repository's DCO requirement and may be rejected by the DCO gate. Replace it with an equivalent signed commit before merging.

AGENTS.md reference: AGENTS.md:L119-L119

Useful? React with 👍 / 👎.

Comment thread src/libkrun/Cargo.toml
edition = "2024"
description = "A dynamic library providing Virtualization-based process isolation capabilities"
build = "build.rs"
license = "Apache-2.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the required subsystem prefix

The commit title, Remove stale cdylib build script, omits the required <subsystem>: prefix. Rename it to follow the repository's commit-title format, such as libkrun: remove stale cdylib build script.

AGENTS.md reference: AGENTS.md:L117-L117

Useful? React with 👍 / 👎.

Comment thread src/libkrun/Cargo.toml
edition = "2024"
description = "A dynamic library providing Virtualization-based process isolation capabilities"
build = "build.rs"
license = "Apache-2.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required agent attribution

This Codex-authored commit has no Assisted-by: trailer, so it omits the repository's required agent attribution. Add an Assisted-by: <Agent-tool>: <model-name> trailer without using Co-authored-by.

AGENTS.md reference: AGENTS.md:L120-L120

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant