Release-Plz failed due to cargo-semver-check `failed to remove directory`

I've been using Release-Plz in CI, but today it failed, and I have no idea what is going on.

Relevant logs:

note: Cloning into "/tmp/.tmpX9UiY5"
note: Downloading stat_route_objects 0.1.1
 Downloading crates ...
  Downloaded stat_route_objects v0.1.1
  2024-05-11T01:21:53.167373Z  INFO  route_verification_as_rel: already up to date
    in get_diff with package=route_verification_as_rel
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:54.120809Z  INFO  route_verification_common_regex: already up to date
    in get_diff with package=route_verification_common_regex
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:54.282892Z  INFO  route_verification_bgpmap: already up to date
    in get_diff with package=route_verification_bgpmap
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:54.445044Z  INFO  route_verification_io: already up to date
    in get_diff with package=route_verification_io
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:55.155929Z  INFO  route_verification_lex: already up to date
    in get_diff with package=route_verification_lex
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:55.306241Z  INFO  route_verification_bloom: already up to date
    in get_diff with package=route_verification_bloom
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:56.007966Z  INFO  route_verification_graph: already up to date
    in get_diff with package=route_verification_graph
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:21:58.049179Z  INFO  stat_route_objects: already up to date
    in get_diff with package=stat_route_objects
    in packages_to_update
    in next_versions
    in update
    in release_pr

  2024-05-11T01:24:12.758939Z ERROR  failed to update packages

Caused by:
    0: failed to determine next versions
    1: error while running cargo-semver-checks
    2: failed to remove directory `/tmp/.tmpVAL5rj/internet_route_verification/route_verification/target`
    3: Directory not empty (os error 39)

Error: failed to update packages

Caused by:
    0: failed to determine next versions
    1: error while running cargo-semver-checks
    2: failed to remove directory `/tmp/.tmpVAL5rj/internet_route_verification/route_verification/target`
    3: Directory not empty (os error 39)

Looks like cargo-semver-checks is trying to remove the target directory but it is not empty? But, I am not doing anything else in the CI:

name: Release-plz

permissions:
  pull-requests: write
  contents: write

on:
  push:
    branches:
      - main
    paths:
      - '.github/workflows/release-plz.yml'
      - '**.rs'
      - '**Cargo.toml'
      - '**CHANGELOG.md'

jobs:
  release-plz:
    name: Release-plz
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Install Rust toolchain
        uses: dtolnay/rust-toolchain@stable
      - name: Run release-plz
        uses: MarcoIeni/release-plz-action@v0.5
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
        with:
          project_manifest: route_verification/Cargo.toml

If anyone spots anything that would help solve this problem, that will be highly appreciated.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.