Skip to content
New issue

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

feat: Add Snap package manager backend #95

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

watzon
Copy link

@watzon watzon commented Nov 23, 2024

This PR adds support for the Snap package manager to pacdef.

Changes

  • Add Snap backend implementation for basic package management
  • Document Snap implementation details in README
  • Add Snap to supported backends table
  • Fix clippy warning in get_version_string()

Implementation Details

The Snap backend provides basic package management functionality while respecting Snap's unique characteristics:

  • No distinction between auto/manual packages (unlike apt)
  • All packages treated as explicitly installed
  • No dependency management support

Documentation

  • Added Snap to the supported backends table
  • Added detailed documentation about how pacdef handles Snap packages
  • Explained differences between Snap and other package managers (particularly apt)

Testing

Tested basic operations:

  • Package installation
  • Package removal
  • Package listing
  • Unmanaged package detection

Closes #94

- Add Snap backend implementation for basic package management
- Document Snap implementation details in README
- Add Snap to supported backends table
- Fix clippy warning in get_version_string()

The Snap backend provides basic package management functionality while
respecting Snap's unique characteristics:
- No distinction between auto/manual packages
- All packages treated as explicitly installed
- No dependency management support
@watzon
Copy link
Author

watzon commented Nov 23, 2024

Can someone tell me if the checks failing is my fault or the fault of the build system. Hate to say the words, but "it works on my machine". Seriously though clippy passes locally and the package builds, I have no idea what's going on.

@ripytide
Copy link
Contributor

I think it's a similar issue to #90 but for the apt dependency.

@ripytide
Copy link
Contributor

If you wanted to submit this PR to metapac too that would be awesome. We've already added two more backends winget and brew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Backend request]: snap
2 participants