Skip to content

[test-bare-src-import] [LOW] Test uses a bare src/ import (breaks when consumed as a soldeer dependency) #24

Description

@thedavidmeister

Dimension: 4 (code quality) · Severity: LOW

test/src/lib/LibCtPop.ctpop.t.sol:6 — import {LibCtPop} from "src/lib/LibCtPop.sol"; uses a bare src/ path. When this repo is consumed as a soldeer dependency, src/ resolves to the consumer's source tree, so the test fails to compile there. Every first-party .sol — including tests — must compile when the repo is a dependency. (Three separate audit agents independently flagged this line.)

Proposed fix — use a relative path:

import {LibCtPop} from "../../../src/lib/LibCtPop.sol";

(or a self-remapped path via remappings.txt).

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions