Skip to content

dylint(ban_std_pathbuf): clearcore_core.rs needs legacy allowlist entry (Package trait is PathBuf-typed) #1339

Description

@zackees

PR #1333 introduced crates/fbuild-library/src/library/clearcore_core.rs implementing the shared crate::Package / core traits whose signatures are typed in std::path::PathBuf (e.g. fn ensure_installed(&self) -> fbuild_core::Result<PathBuf>). The new file therefore trips ban_std_pathbuf (11 deny errors), which has kept Dylint red for every PR merged since #1333.

Migrating just this file to fbuild_core::path::NormalizedPath is not possible without changing trait signatures shared by all library core files (sam_core.rs, apollo3_core.rs, …) — a repo-wide migration that belongs in its own effort.

Per the rollout strategy in dylints/ban_std_pathbuf/src/allowlist.txt, this files the issue for a justified entry:

  • add crates/fbuild-library/src/library/clearcore_core.rs to the allowlist with an inline justification comment referencing this issue
  • remove the entry when the shared Package/core traits migrate to NormalizedPath

Sibling precedent: every existing library core file is already allowlisted as legacy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions