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

Skip WKT files when exporting #2782

Closed
wants to merge 2 commits into from
Closed

Conversation

unmultimedio
Copy link
Member

No description provided.

@@ -176,6 +177,10 @@ func run(
return errors.New("no .proto target files found")
}
for _, imageFile := range image.Files() {
if datawkt.Exists(imageFile.Path()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't what you want - this will ignore a file if it has the same name as a WKT, regardless of if that file was actually either (1) in your module or (2) an actual dependency. Examples from old CLI that will export the file, but will not after this change:

  • A module with a dep on buf.build/protocolbuffers/wellknowntypes.
  • A module that has a file named google/protobuf/timestamp.proto locally.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, I'll fix

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked into it, fixed in 3c4812b

@bufdev bufdev closed this Feb 22, 2024
@bufdev bufdev deleted the jfigueroa/export-skip-wkt branch February 22, 2024 18:04
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.

2 participants