feat: Update zinit-client dependency to 0.4.0

- Upgrade `zinit-client` dependency to version 0.4.0 across all
  relevant crates. This resolves potential compatibility issues
  and incorporates bug fixes and improvements from the latest
  release.

- Improve error handling and logging in `zinit-client` and
  `service_manager` to provide more informative feedback and
  prevent potential hangs during log retrieval.  Add timeout to
  prevent indefinite blocking on log retrieval.

- Update `publish-all.sh` script to correctly handle the
  `service_manager` crate during publishing.  Improves handling of
  special cases in the publishing script.

- Add `zinit-client.workspace = true` to `Cargo.toml` to ensure
  consistent dependency management across the workspace.  This
  ensures the correct version of `zinit-client` is used everywhere.
This commit is contained in:
Mahmoud-Emad
2025-07-10 11:27:59 +03:00
parent fc2830da31
commit 423b7bfa7e
7 changed files with 84 additions and 35 deletions

View File

@@ -147,10 +147,12 @@ is_published() {
local crate_name="$1"
local version="$2"
# Handle special case for zinit_client (directory) -> sal-zinit-client (package)
# Handle special cases for directory names that differ from published package names
local package_name="sal-$crate_name"
if [ "$crate_name" = "zinit_client" ]; then
package_name="sal-zinit-client"
elif [ "$crate_name" = "service_manager" ]; then
package_name="sal-service-manager"
fi
# Use cargo search to check if the exact version exists
@@ -215,10 +217,12 @@ for crate in "${CRATES[@]}"; do
# Check if already published
if [ "$DRY_RUN" = false ] && is_published "$crate" "$VERSION"; then
# Handle special case for zinit_client display name
# Handle special cases for display names
display_name="sal-$crate"
if [ "$crate" = "zinit_client" ]; then
display_name="sal-zinit-client"
elif [ "$crate" = "service_manager" ]; then
display_name="sal-service-manager"
fi
echo -e "${GREEN}$display_name@$VERSION already published, skipping${NC}"
echo ""