Skip to content

Commit

Permalink
Add workaround for bufbuild/buf#3306
Browse files Browse the repository at this point in the history
  • Loading branch information
jchadwick-buf committed Sep 9, 2024
1 parent ddde592 commit 628a280
Show file tree
Hide file tree
Showing 6 changed files with 689 additions and 439 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,9 @@ message StandardSharedAndCustomRuleProto2 {
}
];
}

// This is a workaround for https://github.com/bufbuild/buf/issues/3306.
// TODO(jchadwick-buf): Remove this when bufbuild/buf#3306 is fixed.
message SharedRulesProto2UnusedImportBugWorkaround {
optional buf.validate.shared.FieldConstraints dummy = 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,10 @@ message StandardSharedAndCustomRuleProto3 {
}
];
}

// This is a workaround for https://github.com/bufbuild/buf/issues/3306.
// TODO(jchadwick-buf): Remove this when bufbuild/buf#3306 is fixed.
message SharedRulesProto3UnusedImportBugWorkaround {
SharedRulesEdition2023UnusedImportBugWorkaround dummy_1 = 1;
SharedRulesProto2UnusedImportBugWorkaround dummy_2 = 2;
}
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,9 @@ message StandardSharedAndCustomRuleEdition2023 {
}
];
}

// This is a workaround for https://github.com/bufbuild/buf/issues/3306.
// TODO(jchadwick-buf): Remove this when bufbuild/buf#3306 is fixed.
message SharedRulesEdition2023UnusedImportBugWorkaround {
buf.validate.shared.FieldConstraints dummy = 1;
}
Loading

0 comments on commit 628a280

Please sign in to comment.