Skip to content

Commit

Permalink
Set moduleref when uploading (#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
unmultimedio authored Feb 26, 2024
1 parent 762d5a9 commit e94d14e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions private/bufpkg/bufmodule/bufmoduleapi/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ func getProtoLegacyFederationUploadRequestContent(
}

return &federationv1beta1.UploadRequest_Content{
ModuleRef: &modulev1beta1.ModuleRef{
Value: &modulev1beta1.ModuleRef_Name_{
Name: &modulev1beta1.ModuleRef_Name{
Owner: module.ModuleFullName().Owner(),
Module: module.ModuleFullName().Name(),
},
},
},
Files: protoFiles,
ScopedLabelRefs: protoScopedLabelRefs,
// TODO: We may end up synthesizing v1 buf.yamls/buf.locks on bufmodule.Module,
Expand Down

0 comments on commit e94d14e

Please sign in to comment.