Skip to content

Commit

Permalink
chore(proto): Publish to buf.build
Browse files Browse the repository at this point in the history
Publishes Cedar protos to https://buf.build/celest-dev/cedar
  • Loading branch information
dnys1 committed Sep 11, 2024
1 parent 503a3dc commit cc54d93
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 36 deletions.
13 changes: 0 additions & 13 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
version: v2
managed:
enabled: true
override:
- file_option: go_package
value: github.com/celest-dev/corks/go/proto/dart;dartoptionspb
path: dart/dart_options.proto
- file_option: go_package_prefix
value: github.com/celest-dev/corks/go/proto
disable:
- path: google
inputs:
- directory: proto
- directory: third_party
paths:
- third_party/dart/dart_options.proto
plugins:
- remote: buf.build/protocolbuffers/dart:v21.1.2
include_imports: true
Expand Down
4 changes: 2 additions & 2 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: v2
modules:
- path: proto
- path: third_party
name: buf.build/celest-dev/cedar
breaking:
use:
- PACKAGE
lint:
use:
- MINIMAL
ignore:
- third_party
- proto/dart_options
disallow_comment_ignores: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Generated code. Do not modify.
// source: dart/dart_options.proto
// source: dart_options/dart_options.proto
//
// @dart = 2.12

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Generated code. Do not modify.
// source: dart/dart_options.proto
// source: dart_options/dart_options.proto
//
// @dart = 2.12

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Generated code. Do not modify.
// source: dart/dart_options.proto
// source: dart_options/dart_options.proto
//
// @dart = 2.12

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Generated code. Do not modify.
// source: dart/dart_options.proto
// source: dart_options/dart_options.proto
//
// @dart = 2.12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import 'dart:core' as $core;
import 'package:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

import '../descriptor.pb.dart' as $0;
import '../descriptor.pb.dart' as $3;

export 'plugin.pbenum.dart';

Expand Down Expand Up @@ -138,8 +138,8 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
$core.Iterable<$core.String>? fileToGenerate,
$core.String? parameter,
Version? compilerVersion,
$core.Iterable<$0.FileDescriptorProto>? protoFile,
$core.Iterable<$0.FileDescriptorProto>? sourceFileDescriptors,
$core.Iterable<$3.FileDescriptorProto>? protoFile,
$core.Iterable<$3.FileDescriptorProto>? sourceFileDescriptors,
}) {
final $result = create();
if (fileToGenerate != null) {
Expand Down Expand Up @@ -176,12 +176,12 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
..aOS(2, _omitFieldNames ? '' : 'parameter')
..aOM<Version>(3, _omitFieldNames ? '' : 'compilerVersion',
subBuilder: Version.create)
..pc<$0.FileDescriptorProto>(
..pc<$3.FileDescriptorProto>(
15, _omitFieldNames ? '' : 'protoFile', $pb.PbFieldType.PM,
subBuilder: $0.FileDescriptorProto.create)
..pc<$0.FileDescriptorProto>(
subBuilder: $3.FileDescriptorProto.create)
..pc<$3.FileDescriptorProto>(
17, _omitFieldNames ? '' : 'sourceFileDescriptors', $pb.PbFieldType.PM,
subBuilder: $0.FileDescriptorProto.create);
subBuilder: $3.FileDescriptorProto.create);

@$core.Deprecated('Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
Expand Down Expand Up @@ -261,13 +261,13 @@ class CodeGeneratorRequest extends $pb.GeneratedMessage {
/// Type names of fields and extensions in the FileDescriptorProto are always
/// fully qualified.
@$pb.TagNumber(15)
$core.List<$0.FileDescriptorProto> get protoFile => $_getList(3);
$core.List<$3.FileDescriptorProto> get protoFile => $_getList(3);

/// File descriptors with all options, including source-retention options.
/// These descriptors are only provided for the files listed in
/// files_to_generate.
@$pb.TagNumber(17)
$core.List<$0.FileDescriptorProto> get sourceFileDescriptors => $_getList(4);
$core.List<$3.FileDescriptorProto> get sourceFileDescriptors => $_getList(4);
}

/// Represents a single generated file.
Expand All @@ -276,7 +276,7 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
$core.String? name,
$core.String? insertionPoint,
$core.String? content,
$0.GeneratedCodeInfo? generatedCodeInfo,
$3.GeneratedCodeInfo? generatedCodeInfo,
}) {
final $result = create();
if (name != null) {
Expand Down Expand Up @@ -309,8 +309,8 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
..aOS(1, _omitFieldNames ? '' : 'name')
..aOS(2, _omitFieldNames ? '' : 'insertionPoint')
..aOS(15, _omitFieldNames ? '' : 'content')
..aOM<$0.GeneratedCodeInfo>(16, _omitFieldNames ? '' : 'generatedCodeInfo',
subBuilder: $0.GeneratedCodeInfo.create)
..aOM<$3.GeneratedCodeInfo>(16, _omitFieldNames ? '' : 'generatedCodeInfo',
subBuilder: $3.GeneratedCodeInfo.create)
..hasRequiredFields = false;

@$core.Deprecated('Using this can add significant overhead to your binary. '
Expand Down Expand Up @@ -428,9 +428,9 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
/// point is used, this information will be appropriately offset and inserted
/// into the code generation metadata for the generated files.
@$pb.TagNumber(16)
$0.GeneratedCodeInfo get generatedCodeInfo => $_getN(3);
$3.GeneratedCodeInfo get generatedCodeInfo => $_getN(3);
@$pb.TagNumber(16)
set generatedCodeInfo($0.GeneratedCodeInfo v) {
set generatedCodeInfo($3.GeneratedCodeInfo v) {
setField(16, v);
}

Expand All @@ -439,7 +439,7 @@ class CodeGeneratorResponse_File extends $pb.GeneratedMessage {
@$pb.TagNumber(16)
void clearGeneratedCodeInfo() => clearField(16);
@$pb.TagNumber(16)
$0.GeneratedCodeInfo ensureGeneratedCodeInfo() => $_ensure(3);
$3.GeneratedCodeInfo ensureGeneratedCodeInfo() => $_ensure(3);
}

/// The plugin writes an encoded CodeGeneratorResponse to stdout.
Expand Down
2 changes: 1 addition & 1 deletion proto/cedar/v3/expr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ syntax = "proto3";
package cedar.v3;

import "cedar/v3/value.proto";
import "dart/dart_options.proto";
import "dart_options/dart_options.proto";

option go_package = "cedar/v3;cedarpb";

Expand Down
2 changes: 1 addition & 1 deletion proto/cedar/v3/policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package cedar.v3;

import "cedar/v3/entity_uid.proto";
import "cedar/v3/expr.proto";
import "dart/dart_options.proto";
import "dart_options/dart_options.proto";

option go_package = "cedar/v3;cedarpb";

Expand Down
File renamed without changes.

0 comments on commit cc54d93

Please sign in to comment.