Skip to content

Commit 1f5dd2e

Browse files
committed
review
1 parent 04fe43b commit 1f5dd2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ $(XCPROJECT): $(PROJECT)/project.yml
7575
$(PROJECT)/VPNLib/vpn.pb.swift: $(PROJECT)/VPNLib/vpn.proto
7676
protoc --swift_opt=Visibility=public --swift_out=. 'Coder-Desktop/VPNLib/vpn.proto'
7777

78-
# All other protobuf targets are vendored from Mutagen
79-
%.pb.swift:
78+
$(MUTAGEN_PROTO_SWIFTS):
8079
protoc \
8180
-I=$(PROJECT)/VPNLib/FileSync/MutagenSDK \
8281
--swift_out=$(PROJECT)/VPNLib/FileSync/MutagenSDK \

Diff for: scripts/mutagen-proto.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949
# Extract MIT License header
5050
mit_start_line=$(grep -n "^MIT License" "$clone_dir/LICENSE" | cut -d ":" -f 1)
5151
if [ -z "$mit_start_line" ]; then
52-
echo "Failed to find MIT License header in Mutagen LICENSE file"
52+
echo "Error: Failed to find MIT License header in Mutagen LICENSE file"
5353
exit 1
5454
fi
5555
license_header=$(sed -n "${mit_start_line},\$p" "$clone_dir/LICENSE" | sed 's/^/ * /')
@@ -87,7 +87,8 @@ add_file() {
8787
if [ -f "$import_file_path" ]; then
8888
add_file "$import_file_path"
8989
else
90-
echo "Warning: Import $import_path not found"
90+
echo "Error: Import $import_path not found"
91+
exit 1
9192
fi
9293
fi
9394
done < "$filepath"
@@ -96,7 +97,7 @@ add_file() {
9697
for entry_file in "${entry_files[@]}"; do
9798
entry_file_path="$clone_dir/$proto_prefix/$entry_file"
9899
if [ ! -f "$entry_file_path" ]; then
99-
echo "Failed to find $entry_file_path in mutagen repo"
100+
echo "Error: Failed to find $entry_file_path in mutagen repo"
100101
exit 1
101102
fi
102103
add_file "$entry_file_path"

0 commit comments

Comments
 (0)