Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract a types package for media and payload types. #664

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

mattmoor
Copy link
Member

I noticed Chains was consuming the Dsse type from cli, which was problematic because cli pulls in glog and triggers the -log_dir problem.

Cosign seems to have media and payload types sprinkled everywhere, so I factored out pkg/types/{media,payload}.go where we can define these in a common place that's dependency free.

Signed-off-by: Matt Moore mattomata@gmail.com

cc @priyawadhwa @dlorenc

I noticed Chains was consuming the `Dsse` type from `cli`, which was problematic because `cli` pulls in `glog` and triggers the `-log_dir` problem.

Cosign seems to have media and payload types sprinkled everywhere, so I factored out `pkg/types/{media,payload}.go` where we can define these in a common place that's dependency free.

Signed-off-by: Matt Moore <mattomata@gmail.com>
@dlorenc dlorenc merged commit b1e7ca2 into sigstore:main Sep 14, 2021
@mattmoor mattmoor deleted the extract-types-package branch September 14, 2021 19:26
@cpanato cpanato added this to the v1.2.0 milestone Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants