···6060 "test_run_init_django"
6161 # Mock is broken for Unix FHS reasons.
6262 "test_run_pack_services"
6363+ # Later version of craft-application is being used, which adds an
6464+ # additional kind of file to be ignored, and invalidates a somewhat
6565+ # static assertion. Can be removed in a later version once rockcraft
6666+ # catches up with craft-application version.
6767+ "test_lifecycle_args"
6368 ];
64696570 versionCheckProgramArg = "--version";
+14
pkgs/by-name/sn/snapcraft/esm-test.patch
···11+diff --git i/tests/unit/test_application.py w/tests/unit/test_application.py
22+index d5da2454c..2a9bcd6f9 100644
33+--- i/tests/unit/test_application.py
44++++ w/tests/unit/test_application.py
55+@@ -391,7 +391,8 @@ def test_esm_error(snapcraft_yaml, base, monkeypatch, capsys):
66+ _, err = capsys.readouterr()
77+88+ assert re.match(
99+- rf"^Base {base!r} is not supported by this version of Snapcraft.\n"
1010++ rf"^Running snapcraft without a command will not be possible in future releases. Use 'snapcraft pack' instead.\n"
1111++ rf"Base {base!r} is not supported by this version of Snapcraft.\n"
1212+ rf"Recommended resolution: Use Snapcraft .* from the '.*' channel of snapcraft where {base!r} was last supported.\n"
1313+ r"For more information, check out: .*/reference/bases\n",
1414+ err,
+6
pkgs/by-name/sn/snapcraft/package.nix
···2626 };
27272828 patches = [
2929+ # We're using a later version of `craft-cli` than expected, which
3030+ # adds an extra deprecation warning to the CLI output, meaning that
3131+ # an expected error message looks slightly different. This patch corrects
3232+ # that by checking for the updated error message and can be dropped in a
3333+ # later release of snapcraft.
3434+ ./esm-test.patch
2935 # Snapcraft is only officially distributed as a snap, as is LXD. The socket
3036 # path for LXD must be adjusted so that it's at the correct location for LXD
3137 # on NixOS. This patch will likely never be accepted upstream.