Skip to content

Renaming a script and then running it gives "No such file or directory" #10024

Closed
@urosognjenovic

Description

@urosognjenovic

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

1.0.0-nightly

What version of Foundryup are you on?

Running "foundryup --version" does nothing

What command(s) is the bug in?

forge script

Operating System

macOS (Apple Silicon)

Describe the bug

When I rename a script in the script folder and then run it, I get the error:

foundry_compilers_artifacts_solc::sources: error="....": No such file or directory (os error 2)
Error: failed to read artifact source file for ...`

It seems the issue stems from the fact that the original file still exists in the out folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions