Skip to content

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

Closed

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.

Activity

  1. zackees commented on Aug 21, 2026

    @zackees
    MemberAuthor

    file a refactor issue to use NormalizedPatg

  2. zackees commented on Aug 21, 2026

    @zackees
    MemberAuthor

    Resolved by #1338: crates/fbuild-library/src/library/clearcore_core.rs now carries the allowlist entry with the inline justification (Package/core traits are PathBuf-typed; migration is repo-wide per #1339). Dylint job green on main since the merge.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions