Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incomplete Artifacts downloads corrupt the cache #109

Open
toffaletti opened this issue Jun 16, 2024 · 1 comment
Open

incomplete Artifacts downloads corrupt the cache #109

toffaletti opened this issue Jun 16, 2024 · 1 comment

Comments

@toffaletti
Copy link

I had a download of the host_llvm toolchain hang and never make progress. The next time I tried to run swift-sdk-generator it seemed to think the incomplete file was valid even though it was missing about 100Mb. Removing the file from the Artifacts directory didn't help, I had to blow away the entire Artifacts directory including the cache.db files. It seems like it had created an entry in the cache.db for the incomplete file. There were two entries in the db when I looked (the host_swift download completed successfully), but I couldn't decipher which was which.

@toffaletti
Copy link
Author

toffaletti commented Aug 22, 2024

for anyone else suffering through this, I found you can work around it by downloading the files via another tool that can handle timeouts, retries, etc. and then move the files into the Artifacts directory overwriting the incomplete downloads.

swift archives are from swift.org

llvm downloaded archives are from GitHub releases (these seem to frequently need retries for me)

https://github.com/llvm/llvm-project/releases/download/llvmorg-\(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant