Missing git as build dependency in core24

Howdy,

I tried to upgrade my snap to core24 (My upstream project had new dependencies). If I specify

version: git

snapscraft does not build, as git is missing in the image: 2024-05-09 23:31:54.687 :: 2024-05-09 23:31:54.296 raise child_exception_type(errno_num, err_msg, err_filename) 2024-05-09 23:31:54.687 :: 2024-05-09 23:31:54.296 FileNotFoundError: [Errno 2] No such file or directory: ‘git’

I can circumvent the problem by:

a) Specify version: 1.0 (or similar) b) Add a build dependency in the part: parts: httpobs-local-scan : plugin: python source: . build-packages: - git

If you want to have a look at my system, I’m at the roadmap and engineering sprint.

Thanks for the report @tingdahl.

I can reproduce this and created a bug in snapcraft so we can track it: `version: git` does not work in core24 · Issue #4805 · canonical/snapcraft · GitHub

You’re welcome. Thanks for creating a bug. Have a nice weekend.