snapcraft:work/CRAFT-2315-version-command

Last commit made on 2024-02-26
Get this branch:
git clone -b work/CRAFT-2315-version-command https://git.launchpad.net/snapcraft

Branch merges

Branch information

Name:
work/CRAFT-2315-version-command
Repository:
lp:snapcraft

Recent commits

943f5b0... by Sheng Yu

feat(craft-application): migrate version command

This does not include the legacy snapcraft version

a513278... by Tiago Nobrega

fix(spread): update tests that manipulate architectures

This reflects a change in behavior in core24:

- Trying to build multiple snaps in a single run is an error;
- Trying to build no snaps at all is also an error.

Some of the subtests in architectures/ are still failing, but that's because
they need other fixes (like SNAPCRAFT_BUILD_FOR and "build-for: all" support).

In addition, the build-for-all test is removed because we decided to _not_
support "build-for: all" for now in core24, because the concept itself of
multiplatform snaps needs to be further discussed.

c68b362... by Tiago Nobrega

fix(package): use correct target-arch on snap

f71153d... by Tiago Nobrega

chore(tests): update lifecycle service creation

The Lifecycle service uses the build plan now.

b683207... by Claudio Matsuoka

feat: use craft-application project variables (#4601)

Signed-off-by: Claudio Matsuoka <email address hidden>

b41ebe6... by mattculler <email address hidden>

fix(application): support snap/craft environment variables (#4607)

72ddcc2... by Tiago Nobrega

feat(app): support extensions in core24

This commit adds support for extensions in core24 runs. This takes two changes:

- The extension-related commands (list- and expand-) are sort of "ported over"
  to craft-application's AppCommand base class. The commands for core22 and
  core24 now share the implementation.
- SnapcraftApplication is updated to actually apply the extensions when loading
  the project. Since we don't have any core24-capable extensions yet, this is
  verified at the regular-test level with an integration-ish test that runs the
  application and verifies that the dummy test extension is applied.

aeb9eac... by Tiago Nobrega

fix(project): fix core24/devel validation

The regular validator's 'values' parameter contains the fields that have
been validated so far (a bad footgun).

fa855f3... by Sheng Yu

feat(lifecycle): add deprecated snap command (#4589)

ee5e89c... by Sergio Schvezov

fix(tests): do not expect file no longer provided in libc6 test

root@evolved-marten:~# sed -n -e 's/VERSION=\(.*\)/\1/p' /etc/os-release
"24.04 (Noble Numbat)"
root@evolved-marten:~# apt download libc6
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 libc6 amd64 2.38-3ubuntu1 [3248 kB]
Fetched 3248 kB in 4s (850 kB/s)
root@evolved-marten:~# dpkg-deb -x libc6_2.38-3ubuntu1_amd64.deb x
root@evolved-marten:~# find x | grep usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so
root@evolved-marten:~# echo $?
1

root@divine-piranha:~# sed -n -e 's/VERSION=\(.*\)/\1/p' /etc/os-release
"22.04.4 LTS (Jammy Jellyfish)"
root@divine-piranha:~# apt download libc6
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6 amd64 2.35-0ubuntu3.6 [3236 kB]
Fetched 3236 kB in 3s (1146 kB/s)
root@divine-piranha:~# dpkg-deb -x libc6_2.35-0ubuntu3.6_amd64.deb x
root@divine-piranha:~# find x | grep usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so
x/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so

Signed-off-by: Sergio Schvezov <email address hidden>