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

Snap Package #29

Open
arusahni opened this issue Aug 7, 2019 · 1 comment
Open

Snap Package #29

arusahni opened this issue Aug 7, 2019 · 1 comment

Comments

@arusahni
Copy link
Owner

arusahni commented Aug 7, 2019

It'd be nice to have a Snap package for platforms that don't have an official package. This isn't as easy as it sounds.

Pro:

  • Snap permits packaging of CLI tools.
    Con:
  • Containment is painful
    • Specifically, one needs to manually connect the ~/.gitreqconfig,
    • Also, shelling out to git isn't a viable option due to the git binary being outside of the containment.
@arusahni
Copy link
Owner Author

arusahni commented Aug 7, 2019

For reference, here's where I left off during my snap experimentation:

name: git-req
version: git
summary: Check out merge requests from your GitLab/GitHub hosted repos with ease!
description: |
  This git extension allows end-users to check out merge requests by
  their corresponding number.

  To use, simply `git req <number>` from the project directory.
confinement: devmode
base: core18
parts:
  git-req:
    plugin: rust
    source: .
    rust-channel: stable
    build-packages:
      - libssl-dev
      - pkg-config
plugs:
  config-git-req:
    interface: personal-files
    read:
      - $HOME/.gitreqconfig # This did not appear to work
    write:
      - $HOME/.gitreqconfig  # This did not appear to work
apps:
  git-req:
    command: bin/git-req
    plugs:
      - network
      - config-git-req

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

No branches or pull requests

1 participant