aboutcode-org / aboutcode-org/scancode-toolkit

Support directives in go.mod

Open
#3,492 1 comment 0 reactions 0 assignees View on GitHub
good first issue new feature package-formats
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

## Short Description
We do not support all go.mod features such as replace directives in go.mod files and we should.
See:
- https://github.com/golang/gofrontend/tree/d04b024021bb7dbaa434a6d902bd12beb08e315f/libgo/go/golang.org/x/mod/modfile
- https://go.dev/ref/mod#go-mod-file
- and https://github.com/nexB/scancode-toolkit/blob/develop/src/packagedcode/go_mod.py

And an example see https://github.com/golang/tools/blob/9425c2e70961cb8c2a3b5764658fb70e03d194e4/gopls/go.mod and https://github.com/golang/tools/blob/9425c2e70961cb8c2a3b5764658fb70e03d194e4/go.mod

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.