feat: GoThirdPartyRegistryRemote CDN loader with manifest-first lazy loading#646
Merged
shivasurya merged 1 commit intomainfrom Apr 7, 2026
Merged
feat: GoThirdPartyRegistryRemote CDN loader with manifest-first lazy loading#646shivasurya 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 |
Code Pathfinder Security ScanNo security issues detected.
Powered by Code Pathfinder |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #646 +/- ##
==========================================
+ Coverage 84.39% 84.45% +0.05%
==========================================
Files 162 163 +1
Lines 23449 23564 +115
==========================================
+ Hits 19789 19900 +111
- Misses 2916 2918 +2
- Partials 744 746 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Apr 7, 2026
Owner
Author
This was referenced Apr 7, 2026
Owner
Author
Merge activity
|
…azy loading
Implements GoThirdPartyRegistryRemote mirroring GoStdlibRegistryRemote:
- Manifest-first loading from {baseURL}/go-thirdparty/v1/manifest.json
- Lazy per-package downloads with write-lock serialization (prevents duplicate
HTTP requests under concurrent callers — same pattern as stdlib remote)
- Checksum verification using "sha256:" prefix format; empty checksum skips
verification for development convenience
- Module path encoding: slashes replaced with underscores for CDN filenames
- RWMutex-protected cache with double-check locking in fetchPackageLocked
- Compile-time GoThirdPartyLoader interface compliance assertion in tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
f3bd26c to
265de65
Compare
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
GoThirdPartyRegistryRemotemirroring theGoStdlibRegistryRemotearchitecture for third-party package metadata{baseURL}/go-thirdparty/v1/manifest.jsonwith lazy per-package CDN downloads"sha256:"prefix format; empty checksum skips verification for development conveniencegorm.io/gorm→gorm.io_gorm.json)GoThirdPartyLoaderinterface compliance assertion in testsTest plan
go build ./graph/callgraph/registry/...— clean compilationgo test ./graph/callgraph/registry/ -count=1— all tests passgolangci-lint run ./graph/callgraph/registry/go_thirdparty_remote.go— zero issuesvar _ core.GoThirdPartyLoader = (*GoThirdPartyRegistryRemote)(nil)🤖 Generated with Claude Code