Skip to content

Commit 90b4ec6

Browse files
authored
fix: Tweak release-plz config to handle dirty files. (microsoft#433)
bindings/ruby/bin/console and bindings/ruby/bin/setup show up as dirty to release-plz and causes it to fail to update. As a workaround, set allow_dirty to true to enable update. However ensure that no dirty files are published by setting publish_allow_dirty to false. Also default to not publishing any packages except regorus. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
1 parent 9487def commit 90b4ec6

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

release-plz.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@
22
git_release_enable = false
33
git_tag_enable = false
44
changelog_update = false
5+
dependencies_update = false
6+
publish = false
7+
8+
# These files show up as modified (dirty) to release-plz:
9+
# bindings/ruby/bin/console
10+
# bindings/ruby/bin/setup
11+
# As a result, release-plz fails during update.
12+
# As a workaround, allow dirty workding directory.
13+
allow_dirty = true
14+
# But don't allow release-plz to publish dirty packages.
15+
publish_allow_dirty = false
16+
517

618
[[package]]
719
name = "regorus"
820
git_tag_enable = true
921
git_release_enable = true
10-
changelog_update = true
22+
changelog_update = true
23+
publish = true

0 commit comments

Comments
 (0)