feat(go): Add Go stdlib remote registry loader with lazy caching (PR-03)#549
Merged
shivasurya merged 1 commit intomainfrom Feb 25, 2026
Merged
feat(go): Add Go stdlib remote registry loader with lazy caching (PR-03)#549shivasurya merged 1 commit intomainfrom
shivasurya merged 1 commit intomainfrom
Conversation
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #549 +/- ##
==========================================
+ Coverage 83.09% 83.22% +0.12%
==========================================
Files 141 142 +1
Lines 17531 17660 +129
==========================================
+ Hits 14568 14697 +129
Misses 2422 2422
Partials 541 541 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7 tasks
Owner
Author
This was referenced Feb 25, 2026
Owner
Author
Merge activity
|
- Implement GoStdlibRegistryRemote satisfying core.GoStdlibLoader interface - Lazy per-package loading with SHA256 checksum verification against manifest - Double-check locking (RWMutex) to prevent duplicate downloads under concurrency - 30s HTTP timeout; manifest and packages fetched from versioned CDN URLs - 100% test coverage; 0 lint issues Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39c0210 to
4ba4dff
Compare
Code Pathfinder Security ScanNo security issues detected.
Powered by Code Pathfinder |
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.




Summary
GoStdlibRegistryRemoteimplementing thecore.GoStdlibLoaderinterfacesync.RWMutex) prevents duplicate downloads under concurrency{baseURL}/go{version}/stdlib/v1/)CacheSize,ClearCache,IsManifestLoaded,GoVersionTest plan
TestLoadManifest_*— success, HTTP error, network error, invalid JSON, bad URL, body read errorTestGetPackage_*— cache hit (fast path), download, not found, HTTP error, network error, invalid JSON, checksum mismatch, checksum skip, body read errorTestFetchPackageLocked_DoubleCheckCacheHit— deterministic double-check path coverageTestValidateStdlibImport_*,TestGetFunction_*,TestGetType_*,TestPackageCount_*TestConcurrentGetPackage— race detector cleango_stdlib_remote.go, 0 lint issues, all 20 packages passStacked on
PR-21 (
shiva/go-stdlib-support-pr02) — Go stdlib extraction tool🤖 Generated with Claude Code