mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 13:14:33 +00:00
snap: Fix debug cli option
`snap`/`snapcraft` seems to have changed recently. Since `snap` auto-updates all `snap` packages and since we use the `snapcraft` `snap` for building snaps, this is impacting all our CI jobs which now show: ``` Installing Snapcraft for Linux… snapcraft 7.0.4 from Canonical* installed Run snapcraft -d snap --destructive-mode Usage: snapcraft [options] command [args]... Try 'snapcraft pack -h' for help. Error: unrecognized arguments: -d Error: Process completed with exit code 1. ``` Move the debug option to make it a sub-command (long) option to resolve this issue. Fixes: #4457. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
d06dd8fcdc
commit
90a7763ac6
2
.github/workflows/snap-release.yaml
vendored
2
.github/workflows/snap-release.yaml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
# Check semantic versioning format (x.y.z) and if the current tag is the latest tag
|
# Check semantic versioning format (x.y.z) and if the current tag is the latest tag
|
||||||
if echo "${current_version}" | grep -q "^[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+$" && echo -e "$latest_version\n$current_version" | sort -C -V; then
|
if echo "${current_version}" | grep -q "^[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+$" && echo -e "$latest_version\n$current_version" | sort -C -V; then
|
||||||
# Current version is the latest version, build it
|
# Current version is the latest version, build it
|
||||||
snapcraft -d snap --destructive-mode
|
snapcraft snap --debug --destructive-mode
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload snap
|
- name: Upload snap
|
||||||
|
2
.github/workflows/snap.yaml
vendored
2
.github/workflows/snap.yaml
vendored
@ -24,4 +24,4 @@ jobs:
|
|||||||
- name: Build snap
|
- name: Build snap
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
||||||
run: |
|
run: |
|
||||||
snapcraft -d snap --destructive-mode
|
snapcraft snap --debug --destructive-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user