Improve network reliability and headers in build utilities#132
Improve network reliability and headers in build utilities#132bonede merged 3 commits intobonede:mainfrom
Conversation
|
Seems windows is giving an issue on Scala again. Looking into this now... |
The build failure on Windows is caused by a On Windows, loaded DLLs cannot be deleted or overwritten. When This error is similar to the following issue #61, and I'll push a PR addressing a fix n |
Focusing on helping fix the failing/flaky CI/CD, this PR enhances the network reliability and compatibility of the build script's file downloading and fetching utilities.
Key changes include:
User-AgentandAcceptheaders to HTTP requests to prevent connection rejection by servers that require standard browser identifiers.withCloseableindownloadFileto ensure input streams are properly released.downloadFilesignatures to support a configurableAcceptheader, defaulting toapplication/zip.These modifications ensure a more robust build process, especially when fetching grammar files or dependencies from external repositories.