r0gue-io / pop-cli

An all-in-one tool for Polkadot development.
GNU General Public License v3.0
74 stars 21 forks source link

bug: `pop clean cache --all` does not work when there are folders in cache #302

Closed brunopgalvao closed 2 months ago

brunopgalvao commented 2 months ago

ditto

┌   Pop CLI : Remove cached artifacts
│
⚙  ℹ️ The cache is located at /Users/bruno/Library/Caches/pop
│  
◇  Would you like to cleanup all cached artifacts...
│   
│  artifacts : 0MiB; 
│  bin : 0MiB; 
│  polkadot-execute-worker : 0MiB; 
│  polkadot-execute-worker-v1.13.0 : 11MiB; 
│  polkadot-prepare-worker : 0MiB; 
│  polkadot-prepare-worker-v1.13.0 : 12MiB; 
│  polkadot-v1.13.0 : 92MiB; 
│  substrate-contracts-node-v0.41.0 : 259MiB 
│  Yes 
│
Error: Operation not permitted (os error 1)

Same happens when I run pop clean cache and select the bin or artifacts folder.

AlexD10S commented 2 months ago

You probably have the folders artifacts and bin from the older versions of pop-cli, right now we don't have any operation that create folders there anymore.

Do you think we need to support removing folders?

brunopgalvao commented 2 months ago

You probably have the folders artifacts and bin from the older versions of pop-cli, right now we don't have any operation that create folders there anymore.

Okay, I will close this issue and re-open if I see anything change.

Do you think we need to support removing folders?

If Pop CLI is not creating folders then no.