Skip to content

Commit

Permalink
Issue #554: ZeroDivisionError during snapping of git machete (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
amalota authored Jun 17, 2022
1 parent 9c5d5f1 commit 372189c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

## New in git-machete 3.11.1

- fixed: release to Snap Store

## New in git-machete 3.11.0

- added: `git machete help config` help topic and sphinx documentation page for config keys and environment variables
Expand Down
6 changes: 6 additions & 0 deletions ci/snap/ci-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -e -o pipefail -u

# By default, CircleCi VM's terminal width and height equals 0 which causes `craft_cli/messages.py`, line 279 to exit with `ZeroDivisionError`.
# The terminal width in `craft_cli/messages.py` is being retrieved by `shutil.get_terminal_size()` using `COLUMNS` env var on line 1365
# from `https://github.com/python/cpython/blob/3.10/Lib/shutil.py`, which can be easily fixed by setting `COLUMNS` env var value to some positive number.
# Reference to the issue: https://github.com/canonical/craft-cli/issues/85
export COLUMNS=1

sudo apt-get update
sudo apt-get install -y snapd
sudo snap install review-tools
Expand Down
2 changes: 1 addition & 1 deletion git_machete/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.11.0'
__version__ = '3.11.1'

0 comments on commit 372189c

Please sign in to comment.