Skip to content

fix: copy generated proto sources with /. so an empty output doesn't fail - #2032

Merged
keith merged 1 commit into
bazelbuild:mainfrom
AttilaTheFun:proto-copy-empty-output
Nov 20, 2026
Merged

keith merged 1 commit into
bazelbuild:mainfrom
AttilaTheFun:proto-copy-empty-output

Conversation

@AttilaTheFun

Copy link
Copy Markdown
Contributor

copy_swift_sources.sh did cp -RL <tmp>/** <out>/. In sh ** is just *, so when the plugin generates no Swift for a proto the glob stays literal and cp fails. Copying <tmp>/. does the same thing and is fine when the dir is empty.

…fail

`**` is just `*` in sh, and when the plugin generates nothing it stays
literal and cp fails.
@keith
keith enabled auto-merge (squash) November 20, 2026 19:44
@keith
keith merged commit 011be1c into bazelbuild:main Nov 20, 2026
18 checks passed
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