···60 "test_run_init_django"
61 # Mock is broken for Unix FHS reasons.
62 "test_run_pack_services"
0000063 ];
6465 versionCheckProgramArg = "--version";
···60 "test_run_init_django"
61 # Mock is broken for Unix FHS reasons.
62 "test_run_pack_services"
63+ # Later version of craft-application is being used, which adds an
64+ # additional kind of file to be ignored, and invalidates a somewhat
65+ # static assertion. Can be removed in a later version once rockcraft
66+ # catches up with craft-application version.
67+ "test_lifecycle_args"
68 ];
6970 versionCheckProgramArg = "--version";
+14
pkgs/by-name/sn/snapcraft/esm-test.patch
···00000000000000
···1+diff --git i/tests/unit/test_application.py w/tests/unit/test_application.py
2+index d5da2454c..2a9bcd6f9 100644
3+--- i/tests/unit/test_application.py
4++++ w/tests/unit/test_application.py
5+@@ -391,7 +391,8 @@ def test_esm_error(snapcraft_yaml, base, monkeypatch, capsys):
6+ _, err = capsys.readouterr()
7+8+ assert re.match(
9+- rf"^Base {base!r} is not supported by this version of Snapcraft.\n"
10++ rf"^Running snapcraft without a command will not be possible in future releases. Use 'snapcraft pack' instead.\n"
11++ rf"Base {base!r} is not supported by this version of Snapcraft.\n"
12+ rf"Recommended resolution: Use Snapcraft .* from the '.*' channel of snapcraft where {base!r} was last supported.\n"
13+ r"For more information, check out: .*/reference/bases\n",
14+ err,
+6
pkgs/by-name/sn/snapcraft/package.nix
···26 };
2728 patches = [
00000029 # Snapcraft is only officially distributed as a snap, as is LXD. The socket
30 # path for LXD must be adjusted so that it's at the correct location for LXD
31 # on NixOS. This patch will likely never be accepted upstream.
···26 };
2728 patches = [
29+ # We're using a later version of `craft-cli` than expected, which
30+ # adds an extra deprecation warning to the CLI output, meaning that
31+ # an expected error message looks slightly different. This patch corrects
32+ # that by checking for the updated error message and can be dropped in a
33+ # later release of snapcraft.
34+ ./esm-test.patch
35 # Snapcraft is only officially distributed as a snap, as is LXD. The socket
36 # path for LXD must be adjusted so that it's at the correct location for LXD
37 # on NixOS. This patch will likely never be accepted upstream.