mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
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 <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
fd59bb5a91
commit
2b1434b3ac
3
.gitignore
vendored
3
.gitignore
vendored
@@ -29,6 +29,9 @@ bindings/*/target
|
||||
**bin
|
||||
**obj
|
||||
|
||||
# Bundler binstubs regenerated during ruby setup
|
||||
bindings/ruby/bin/
|
||||
|
||||
# Visual Studio folders
|
||||
**/*.vs
|
||||
|
||||
|
||||
@@ -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__)
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user