Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Remappings resolution of dependencies does not work #65

@beeb

Description

@beeb

When dependencies (in lib for git submodules or dependencies for soldeer) have their own dependencies, with or without foundry.toml or remappings.txt file with remappings, those are not considered by natspec-smells for resolution.

This leads to errors CompileInferenceError: Couldn't find ...sol.

Foundry itself can resolve those remappings and dependencies as shown by running forge re, it would be nice if natspec-smells did the same.

Example:

  • root foundry.toml contains remappings for uniswap-permit2 and uses it as dependency
  • dependencies/uniswap-permit2 has a lib folder with solmate
  • uniswap-permit2 uses imports like solmate/src/tokens/ERC20.sol
  • natspec-smells can't resolve those imports to solmate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions