pgx-version-updater is now ran via cargo run
@@ -55,28 +55,8 @@ for file in pgx-examples/**/Cargo.toml; do
EXCLUDE_FROM_VERSION_BUMP+=("$file")
done
-# Ensure that pgx-version-updater is installed and/or updated to the most recent version
-if command -v pgx-version-updater &> /dev/null; then
- echo "pgx-version-updater found. Checking to see if update is necessary."
- installed_version=$(pgx-version-updater --version)
- installed_version=${installed_version##pgx-version-updater } # strips the prefix
- cargo_toml_version=$(pgx-version-updater query-cargo-version)
-
- if [ "$installed_version" == "$cargo_toml_version" ]; then
- echo "Installed version of pgx-version-updater ($installed_version) matches version found in PGX source ($cargo_toml_version). Skipping."
- else
- echo "Installed version of pgx-version-updater ($installed_version) does not match version found in PGX source ($cargo_toml_version). Updating -- this may take a few moments"
- cargo $CARGO_QUIET_FLAG install --path pgx-version-updater/
- echo "Done."
- fi
-else
- echo "pgx-version-updater not found. Building and installing now -- this may take a few moments."
- cargo $CARGO_QUIET_FLAG install --path pgx-version-updater/
- echo "Done."
-fi
-
# shellcheck disable=SC2086,SC2068
-pgx-version-updater \
+cargo run --bin pgx-version-updater \
update-files \
--update-version "$VERSION" \
${INCLUDE_FOR_DEP_UPDATES[@]/#/-i } \
