Skip to content

Commit

Permalink
build(deps): bump craft-cli to 2.5.1 (#4528)
Browse files Browse the repository at this point in the history
This new version fixes decoding issues when parsing malformed output
from other processes (typically during the build step)

Fixes #4515
  • Loading branch information
tigarmo committed Jan 19, 2024
1 parent 735817f commit ef10848
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Expand Up @@ -2,7 +2,7 @@ attrs==23.1.0
catkin-pkg==0.5.2
click==8.1.7
craft-archives==1.1.3
craft-cli==2.5.0
craft-cli==2.5.1
craft-grammar==1.1.1
craft-parts==1.26.0
craft-providers==1.20.1
Expand Down
2 changes: 1 addition & 1 deletion requirements-devel.txt
Expand Up @@ -12,7 +12,7 @@ codespell==2.2.6
colorama==0.4.6
coverage==7.4.0
craft-archives==1.1.3
craft-cli==2.5.0
craft-cli==2.5.1
craft-grammar==1.1.2
craft-parts==1.26.1
craft-providers==1.20.1
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -6,7 +6,7 @@ chardet==5.2.0
charset-normalizer==3.3.2
click==8.1.7
craft-archives==1.1.3
craft-cli==2.5.0
craft-cli==2.5.1
craft-grammar==1.1.2
craft-parts==1.26.1
craft-providers==1.20.1
Expand Down
12 changes: 12 additions & 0 deletions tests/spread/core22/invalid-utf8/snapcraft.yaml
@@ -0,0 +1,12 @@
name: invalid-utf8
base: core22
summary: a project that echos invalid utf-8 text
description: a project that echos invalid utf-8 text
version: "1.0"
confinement: strict

parts:
my-part:
plugin: nil
override-build: |
echo -e "hi \x96 bye"
8 changes: 8 additions & 0 deletions tests/spread/core22/invalid-utf8/task.yaml
@@ -0,0 +1,8 @@
summary: Handle invalid utf-8 text during the build

restore: |
snapcraft clean
rm -f ./*.snap
execute: |
snapcraft pack -v 2>&1 | MATCH ":: hi � bye"

0 comments on commit ef10848

Please sign in to comment.