fix: actionable download hint and stale-archive fix in build script#188
Merged
Conversation
…ar support in build script Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix issue with tenderdash build due to invalid SSL certificate
fix: actionable SSL error and TENDERDASH_PROTO_ARCHIVE support in build script
Mar 12, 2026
lklimek
reviewed
Mar 12, 2026
| .map_err(|e| format!("cannot download archive from: {}: {:?}", url, e))?; | ||
| let rb = ureq::get(url).call().map_err(|e| { | ||
| let err_str = format!("{:?}", e).to_lowercase(); | ||
| // Detect SSL / TLS certificate errors and emit an actionable hint. |
| const RETRIES: usize = 2; | ||
| let mut last_err: Option<String> = None; | ||
|
|
||
| // If the caller supplied a custom archive via TENDERDASH_PROTO_ARCHIVE and |
Collaborator
There was a problem hiding this comment.
@copilot Let's revert that TENDERDASH_PROTO_ARCHIVE feature. It's enough to display a hint to the user every time download fails. The hint should include: source url and destination path. Also check if check_state function is in use; if yes, adjust hint to create state file, otherwise remove that unused function.
Contributor
Author
There was a problem hiding this comment.
Done in c97f4bd. TENDERDASH_PROTO_ARCHIVE is reverted. The hint now fires on every download failure and includes the source URL and destination path. Since check_state is in use, Option 2 (TENDERDASH_DIR) also instructs users to create a download.state file in the output directory containing the commitish.
…E, note state file for TENDERDASH_DIR Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
Copilot
AI
changed the title
fix: actionable SSL error and TENDERDASH_PROTO_ARCHIVE support in build script
fix: actionable download error hint in build script
Mar 12, 2026
lklimek
reviewed
Mar 12, 2026
| 2. Save it to: {archive_file}\n\ | ||
| 3. Re-run the build.\n\ | ||
| \n\ | ||
| Option 2 – Provide pre-extracted sources:\n\ |
…karound Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
…ive on download failure Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
…ad hint Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
Copilot
AI
changed the title
fix: actionable download error hint in build script
ci: dynamic protoc install + auto-recover from SSL archive download failure
Mar 12, 2026
Collaborator
Co-authored-by: lklimek <842586+lklimek@users.noreply.github.com>
Contributor
Author
Copilot
AI
changed the title
ci: dynamic protoc install + auto-recover from SSL archive download failure
fix: actionable download hint and stale-archive fix in build script
Mar 12, 2026
lklimek
marked this pull request as ready for review
March 12, 2026 19:46
lklimek
approved these changes
Mar 12, 2026
This was referenced Apr 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In restricted network environments (corporate proxies, self-signed certs),
ureq/rustlsfails to download the Tenderdash proto archive withInvalidCertificate(UnknownIssuer). A secondary bug left a zero-byte zip on disk, causing the retry to emit a confusingInvalidArchiveerror instead of repeating the actionable hint.proto-compiler/src/functions.rsFile::createso a failed connection never leaves a stale empty archive that confuses the retry logic.curland re-run the build.TENDERDASH_PROTO_ARCHIVEenv-var workaround; the hint-based manual workflow is sufficient.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.