fix: quick-checks CI failures - taplo format, zepter, umbrella
1. TOML format (taplo): 123 files reformatted using correct config - Command: taplo format --config .config/taplo.toml 2. Zepter feature propagation fix: - pezframe-support: added pezsp-timestamp/try-runtime to try-runtime feature 3. generate-umbrella.py bug fix: - Script crashed when Cargo.toml/src didn't exist in umbrella dir - Added existence checks before deletion
This commit is contained in:
@@ -201,8 +201,12 @@ def delete_umbrella(path):
|
||||
umbrella_dir = os.path.join(path, "umbrella")
|
||||
if os.path.exists(umbrella_dir):
|
||||
print(f"Deleting {umbrella_dir}")
|
||||
os.remove(os.path.join(umbrella_dir, "Cargo.toml"))
|
||||
shutil.rmtree(os.path.join(umbrella_dir, "src"))
|
||||
cargo_toml = os.path.join(umbrella_dir, "Cargo.toml")
|
||||
if os.path.exists(cargo_toml):
|
||||
os.remove(cargo_toml)
|
||||
src_dir = os.path.join(umbrella_dir, "src")
|
||||
if os.path.exists(src_dir):
|
||||
shutil.rmtree(src_dir)
|
||||
|
||||
"""
|
||||
Create the umbrella crate and add it to the workspace.
|
||||
|
||||
Reference in New Issue
Block a user