book icon indicating copy to clipboard operation
book copied to clipboard

Foundry book contains invalid command for witnessing lib structure after dependency installation

Open 0xumarkhatab opened this issue 1 year ago • 1 comments

Main issue

Chapter 5 of foundry book contains an invalid command for latest version of foundry which when ran , gives following error message

image

To Reproduce

  • open Powershell, in a foundry project.
  • Install some dependency like solmate ( forge install transmissions11/solmate )
  • run tree lib -L 1 at the root level

My system specs

Forge Version

forge 0.2.0 (9fe9a3fc 2024-02-22T13:23:11.369603400Z)

Terminal

Powershell

OS

Windows 10

Rustc Version

rustc 1.76.0 (07dca489a 2024-02-04)

Cargo Version

cargo 1.76.0 (c84b36747 2024-01-18)

0xumarkhatab avatar Mar 21 '24 03:03 0xumarkhatab

Unable to replicate on Linux / MacOS, this is likely because the Windows tree command likely uses different parameters and doesn't recognize -L.

Feel free to open a PR for this documenting the behaviour on Windows.

zerosnacks avatar Mar 22 '24 16:03 zerosnacks

Marking as not planned, there is no claim of commands being Windows compatible

zerosnacks avatar Sep 17 '24 09:09 zerosnacks