We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git
snapcraft.services.provider.setup()
diff --git a/snapcraft/services/provider.py b/snapcraft/services/provider.py index 2ed2b590..e28b730c 100644 @@ -26,6 +26,12 @@ class Provider(ProviderService): @overrides def setup(self) -> None: + """Snapcraft-specific setup.""" + # required for apt gpg and `version: git` + self.packages.extend(["gpg", "dirmngr", "git"]) + if build_info := os.getenv("SNAPCRAFT_BUILD_INFO"): self.environment["SNAPCRAFT_BUILD_INFO"] = build_info if image_info := os.getenv("SNAPCRAFT_IMAGE_INFO"):
version: git
The text was updated successfully, but these errors were encountered:
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3171.
This message was autogenerated
Sorry, something went wrong.
This should be fixed because we bundle git in #5149
No branches or pull requests
What needs to get done
snapcraft.services.provider.setup()
to installgit
:Why it needs to get done
version: git
and othergit
calls to work inside the build environmentThe text was updated successfully, but these errors were encountered: