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

Makefile

Lines changed: 1 addition & 2 deletions
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 \

scripts/mutagen-proto.sh

Lines changed: 4 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy