File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,7 @@ for FILE in ${VERSFILES} ; do
136
136
137
137
# If there's a Cargo.lock, update it also.
138
138
if [ -f " ${DIR} /Cargo.lock" ] ; then
139
- ( cd " ${DIR} " && cargo fetch )
140
- git add " ${DIR} /Cargo.lock"
139
+ CARGO_LOCKS=" ${CARGO_LOCKS} ${DIR} "
141
140
fi
142
141
;;
143
142
@@ -197,6 +196,12 @@ for FILE in ${VERSFILES} ; do
197
196
fi
198
197
done
199
198
199
+ # If there are Cargo.lock files, we need to run "cargo fetch" after all the Cargo.toml files have been edited.
200
+ for DIR in ${CARGO_LOCKS} ; do
201
+ ( cd " ${DIR} " && cargo fetch )
202
+ git add " ${DIR} /Cargo.lock"
203
+ done
204
+
200
205
# Look for files that have been changed, but that we haven't told git about.
201
206
echo " Checking for modified but untracked files:"
202
207
if git status -s | grep -qEv ' ^M ' ; then
You can’t perform that action at this time.
0 commit comments