From 2b1434b3acecd7dcc6538b0ef91111e98f916ef2 Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Sat, 24 Jan 2026 07:09:25 +0530 Subject: [PATCH] fix(release): Fix release-plz dirty-tree errors from Ruby binstubs (#547) Ruby binstubs were checked in, but ignore via .gitignore **bin pattern. This causes release-plz to think that the source tree is dirty. The binstubs are deleted from source repo since they are always regenerated by bundler. Also simplizy release-plz to focus only on the core crate. Signed-off-by: Anand Krishnamoorthi --- .gitignore | 3 +++ bindings/ruby/bin/console | 11 ----------- bindings/ruby/bin/setup | 8 -------- release-plz.toml | 11 ----------- 4 files changed, 3 insertions(+), 30 deletions(-) delete mode 100755 bindings/ruby/bin/console delete mode 100755 bindings/ruby/bin/setup diff --git a/.gitignore b/.gitignore index cd9f4a7..bbdab21 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,9 @@ bindings/*/target **bin **obj +# Bundler binstubs regenerated during ruby setup +bindings/ruby/bin/ + # Visual Studio folders **/*.vs diff --git a/bindings/ruby/bin/console b/bindings/ruby/bin/console deleted file mode 100755 index 84c91f4..0000000 --- a/bindings/ruby/bin/console +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env ruby -# frozen_string_literal: true - -require "bundler/setup" -require "regorus" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -require "irb" -IRB.start(__FILE__) diff --git a/bindings/ruby/bin/setup b/bindings/ruby/bin/setup deleted file mode 100755 index dce67d8..0000000 --- a/bindings/ruby/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/release-plz.toml b/release-plz.toml index 42fd45b..35c2c87 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -5,20 +5,9 @@ changelog_update = false dependencies_update = false publish = false -# These files show up as modified (dirty) to release-plz: -# bindings/ruby/bin/console -# bindings/ruby/bin/setup -# As a result, release-plz fails during update. -# As a workaround, allow dirty workding directory. -allow_dirty = true -# But don't allow release-plz to publish dirty packages. -publish_allow_dirty = false - - [[package]] name = "regorus" git_tag_enable = true git_release_enable = true changelog_update = true publish = true -command = "cargo xtask bindings --base-ref origin/main"