-
Notifications
You must be signed in to change notification settings - Fork 0
Add a go.mod lockfile parser (Go) #6
Copy link
Copy link
Open
Labels
adapterNew format/source adapter (lockfile or doc source)New format/source adapter (lockfile or doc source)enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspythonPython sidecarPython sidecar
Description
Metadata
Metadata
Assignees
Labels
adapterNew format/source adapter (lockfile or doc source)New format/source adapter (lockfile or doc source)enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomerspythonPython sidecarPython sidecar
Why
Same motivation as the Cargo issue (#5) - Go is named in the README roadmap.
go.modis a simple line-oriented format, so this is a self-contained parser.What to do
parse_go_mod(path)tosidecar/src/docchat_sidecar/lockfiles.py. Parserequirelines, both the single formrequire github.com/foo/bar v1.2.3and the block formrequire ( ... ).vin the version (e.g.v1.2.3->1.2.3) and document the choice in the docstring.// indirectdeps and document it. Returnlist[Pin].Acceptance criteria
require, blockrequire, indirect deps, and missing/malformed files.Pointers
parse_requirements_txtfor the line-oriented parsing style.