| Crates.io | deps-go |
| lib.rs | deps-go |
| version | 0.5.4 |
| created_at | 2025-12-26 16:57:23.300059+00 |
| updated_at | 2026-01-15 17:16:56.159519+00 |
| description | Go module support for deps-lsp |
| homepage | |
| repository | https://github.com/bug-ops/deps-lsp |
| max_upload_size | |
| id | 2005936 |
| size | 194,303 |
Go modules support for deps-lsp.
This crate provides parsing and registry integration for Go's module ecosystem.
go.mod with position tracking for all directivesgo.sumrequire, replace, exclude, and retract directives// indirect)deps_core::EcosystemHandler trait[dependencies]
deps-go = "0.5"
use deps_go::{parse_go_mod, GoRegistry};
let dependencies = parse_go_mod(content, &uri)?;
let registry = GoRegistry::new(cache);
let versions = registry.get_versions("github.com/gin-gonic/gin").await?;
require github.com/gin-gonic/gin v1.9.1
require (
github.com/stretchr/testify v1.8.4
golang.org/x/sync v0.5.0 // indirect
)
replace github.com/old/module => github.com/new/module v1.0.0
replace github.com/local/module => ../local/module
exclude github.com/pkg/module v1.2.3
Handles Go's pseudo-version format for unreleased commits:
v0.0.0-20191109021931-daa7c04131f5
Extracts base version and timestamp for display.