Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
3.4k stars 831 forks source link

missing get_recent_deployments file #1802

Closed PtSik closed 3 months ago

PtSik commented 3 months ago

Discussed in https://github.com/Cyfrin/foundry-full-course-f23/discussions/1801

Originally posted by **PtSik** June 7, 2024 After installing foundry-devops I dont have get_recent_deployments file in the devops folder. I fixed it somehow by creating couple functions but would like to avoid it in the future.
Equious commented 3 months ago

Please be more clear. Are you saying you didn't get ./lib/foundry-devops/src/get_recent_deployment.sh? This is just part of the library and should come when installed. I would reinstall if it's missing for some reason.

PtSik commented 3 months ago

Yes, exactly. Reinstall didnt help

Equious commented 3 months ago

Delete lib/foundry-devops and run forge install Cyfrin/foundry-devops --no-commit

You should see that the installation was successful.

image

Afterwards this file should just be added to your workspace.

image

No special steps should be required.

PtSik commented 3 months ago

forge install Cyfrin/foundry-devops --no-commit was installing foundry-devops 0.2.2 and that was the output: asas But thanks to you i installed older version with forge install Cyfrin/foundry-devops@0.0.11 --no-commit and everything seems fine.

PatrickAlphaC commented 3 months ago

Hello!

As of version https://github.com/Cyfrin/foundry-devops/releases/tag/0.1.0 of this package, we removed that script.

Why?

  1. It required having ffi = true in people's foundry.toml -> We want to avoid that for security purposes!
  2. Instead, we use foundry's built in cheatcode of vm.readFile

Please see the README.md of this package to see how to deploy moving forward! You just need to add read permissions in your foundry.toml now.

Let me know if that works for you.