google / google/capslock

feature request: Capability diff between two versions of a given Go module/package.

Open
#35 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.2k
Forks
52
Avg merge
2d 16h
Merged PRs (30d)
4

Description

First off, really happy to see the birth of the `capslock` tool as having a way to track capabilities used by transitive dependencies is key to mitigating supply-chain attacks.

One feature that would be really incredible to incorporate in `capslock` and associated tools is to easily diff the capabilities added/removed in between two versions of a given Go module/package.

And furthermore, make it possible to hook this functionality up to `go get -u`.

Imagine being able to run `go get -u ./...` to update packages of a Go module and having warnings be emitted for newly added capabilities of transitive dependencies.

E.g.
```bash
$ go get -u github.com/org/repo/pkg
WARNING: new capability added to `github.com/org/repo/pkg` (os/exec). Added in version 2023-09-26-githash.
```

Of course, neither `go get` nor `capslock` need to perform the capability diff itself, it could be a third glue tool that reads the versions (of updated dependencies) from `go get -u` and the json output of capabilities of `capslock` and prints warnings for newly added capabilities.

Once more, thanks for working to improve this space and help regain confidence in the capabilities utilized by dependencies in the open source community.

With cheerful regards,
Robin

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.