Skip to content

Simplify and harden scenario for file not found locally#62

Merged
kzu merged 1 commit into
mainfrom
dev/notfound
May 4, 2026
Merged

Simplify and harden scenario for file not found locally#62
kzu merged 1 commit into
mainfrom
dev/notfound

Conversation

@kzu
Copy link
Copy Markdown
Member

@kzu kzu commented May 4, 2026

Rather than appending the Etag to the download provider only if force!=true, skip adding it too when the local file doesn't exist. It typically means we'll need to fully download and we were checking that separately after checking for not-modified, which duplicated some code.

Also check for temp path before enumerating the first .cs, since sometimes the dir might not exist (download failed?) and we would fail with a cryptic IO exception.

Rather than appending the Etag to the download provider only if force!=true, skip adding it too when the local file doesn't exist. It typically means we'll need to fully download and we were checking that separately after checking for not-modified, which duplicated some code.

Also check for temp path before enumerating the first .cs, since sometimes the dir might not exist (download failed?) and we would fail with a cryptic IO exception.
@kzu kzu enabled auto-merge (rebase) May 4, 2026 14:33
@kzu
Copy link
Copy Markdown
Member Author

kzu commented May 4, 2026

168 passed 168 passed 1 skipped

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.7 with 💜 by @devlooped

@kzu kzu merged commit 5283b05 into main May 4, 2026
7 checks passed
@kzu kzu deleted the dev/notfound branch May 4, 2026 14:36
@kzu kzu added the enhancement New feature or request label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant