UMAprotocol / protocol

UMA Protocol Running on Ethereum
https://uma.xyz
GNU Affero General Public License v3.0
361 stars 175 forks source link

fix: fix foundry scripts in ci #4679

Closed mrice32 closed 6 months ago

mrice32 commented 6 months ago

Motivation

The foundry scripts are failing in ci.

Summary

This patches the foundry script to detect if the forge-std folder is empty and deletes it if so.

In ci, the caching and/or installation process breaks in such a way where the lib folder exists, but the actual files are not present. This detects that situation and removes the entire thing before reinstalling.

Testing

Check a box to describe how you tested these changes and list the steps for reviewers to test.

Issue(s)

N/A