Skip to content

build(cargo): wait a week before resolving new crate versions - #23

Merged
furedea merged 1 commit into
mainfrom
build/cargo-min-publish-age
Nov 18, 2026
Merged

furedea merged 1 commit into
mainfrom
build/cargo-min-publish-age

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

.cargo/config.toml に global-min-publish-age = "7 days" を置き,公開から 1 週間たっていない crate の版を解決しないようにする.template-python の exclude-newer,template-typescript の minimumReleaseAge,renovate-config の 7 日にそろえる.

項目 変更前 変更後
cargo add・cargo update が選ぶ版 最新 公開から 7 日以上の版(Cargo 1.100 以降)
取得元 deny.toml の [sources] で crates.io に限定済み 変更なし
  • 今の Cargo(1.95)は未知のキーを警告なしで無視する(cargo metadata --offline の stderr が空)
  • CI

効き始めるのは Cargo 1.100 から.nixpkgs は master・nixpkgs-unstable とも rustc 1.99.1,nixpkgs-26.05-darwin は 1.98 なので,flake の入力が 1.100 に上がった時点から効く.

前提と出典

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@furedea

furedea commented Nov 18, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T07:50:40.344361Z d7f609f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Review summary: no findings.

This PR adds only .cargo/config.toml, which sets [registry] global-min-publish-age = "7 days". It doesn't change any Rust code or runtime behaviour. The PR description notes that older Cargo ignores unknown config keys, so the toolchain this flake pins today keeps working. The setting starts to apply once the toolchain reaches 1.100. This is config only, so there's nothing to unit-test. I found no correctness or security problems.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: d7f609f993

ℹ️ 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".

@furedea
furedea merged commit 6816b39 into main Nov 18, 2026
19 checks passed
@furedea
furedea deleted the build/cargo-min-publish-age branch November 18, 2026 07:57
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