We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdd241a commit f250dcfCopy full SHA for f250dcf
hack/update-vendor.sh
@@ -240,6 +240,14 @@ for repo in $(tsort "${TMP_DIR}/tidy_deps.txt"); do
240
$(go mod why ${loopback_deps})"
241
exit 1
242
fi
243
+
244
+ # prune unused pinned replace directives
245
+ comm -23 \
246
+ <(go mod edit -json | jq -r '.Replace[] | select(.Old.Path == .New.Path) | select(.New.Version != null) | .Old.Path' | sort) \
247
+ <(go list -m -json all | jq -r .Path | sort) |
248
+ xargs -L 1 -I {} echo "-dropreplace={}" |
249
+ xargs -L 100 go mod edit -fmt
250
251
popd >/dev/null 2>&1
252
done
253
echo "=== tidying root" >> "${LOG_FILE}"
0 commit comments