Skip to content

feat(go): Add Go version detection and stdlib loader init (PR-05)#552

Merged
shivasurya merged 1 commit intomainfrom
shiva/go-stdlib-support-pr05
Feb 25, 2026
Merged

feat(go): Add Go version detection and stdlib loader init (PR-05)#552
shivasurya merged 1 commit intomainfrom
shiva/go-stdlib-support-pr05

Conversation

@shivasurya
Copy link
Owner

Description

  • Add DetectGoVersion(projectPath) with priority chain: go.mod.go-versiongo.work → default "1.21"
  • Add normalizeGoVersion to strip patch component: "1.26.0""1.26"
  • Add InitGoStdlibLoader(reg, projectPath, logger) wiring GoStdlibRegistryRemote into GoModuleRegistry.StdlibLoader
  • Graceful degradation on manifest fetch failure (StdlibLoader remains nil; downstream code nil-checks)
  • stdlibRegistryBaseURL package var allows test override without modifying production logic
  • 25 tests, 100% coverage on go_version.go, 0 lint issues, all packages pass

Checklist

  • Tests passing (gradle testGo)?
  • Lint passing (golangci-lint run)?

🤖 Generated with Claude Code

@shivasurya shivasurya added enhancement New feature or request go Pull requests that update go code labels Feb 24, 2026
@shivasurya shivasurya self-assigned this Feb 24, 2026
@safedep
Copy link

safedep bot commented Feb 24, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

@shivasurya shivasurya force-pushed the shiva/go-stdlib-support-pr05 branch from e687b51 to 16c6365 Compare February 24, 2026 02:58
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.25%. Comparing base (4e67d67) to head (cc2624d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #552      +/-   ##
==========================================
+ Coverage   83.23%   83.25%   +0.02%     
==========================================
  Files         142      143       +1     
  Lines       17660    17697      +37     
==========================================
+ Hits        14699    14734      +35     
- Misses       2421     2422       +1     
- Partials      540      541       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shivasurya shivasurya changed the title feat(go): Add Go version detection and stdlib loader init feat(go): Add Go version detection and stdlib loader init (PR-05) Feb 25, 2026
Copy link
Owner Author

shivasurya commented Feb 25, 2026

Merge activity

  • Feb 25, 3:17 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 25, 3:25 AM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 25, 3:25 AM UTC: @shivasurya merged this pull request with Graphite.

@shivasurya shivasurya changed the base branch from shiva/go-stdlib-support-pr04 to graphite-base/552 February 25, 2026 03:22
@shivasurya shivasurya changed the base branch from graphite-base/552 to main February 25, 2026 03:23
- Add DetectGoVersion(projectPath) with priority chain:
  go.mod -> .go-version -> go.work -> default "1.21"
- Add normalizeGoVersion to strip patch: "1.26.0" -> "1.26"
- Add InitGoStdlibLoader(reg, projectPath, logger) wiring
  GoStdlibRegistryRemote into GoModuleRegistry.StdlibLoader;
  graceful degradation on manifest fetch failure (nil StdlibLoader)
- stdlibRegistryBaseURL package var allows test override without
  modifying production logic
- 100% coverage on go_version.go, 0 lint issues, all packages pass

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@shivasurya shivasurya force-pushed the shiva/go-stdlib-support-pr05 branch from 16c6365 to cc2624d Compare February 25, 2026 03:24
@github-actions
Copy link

Code Pathfinder Security Scan

Pass Critical High Medium Low Info

No security issues detected.

Metric Value
Files Scanned 2
Rules 38

Powered by Code Pathfinder

@shivasurya shivasurya merged commit 95ce933 into main Feb 25, 2026
5 checks passed
@shivasurya shivasurya deleted the shiva/go-stdlib-support-pr05 branch February 25, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant