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: add snap manifest #3723

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

soumyaDghosh
Copy link

  • PR Description

Adds the snap package manifest

  • Please check if the PR fulfills these requirements
  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

There is a package for lazygit in the snap store, but that's old and seems to be unmaintained. It'd be great if lazygit can be updated and upstreamed. Thanks!

@ecruzolivera
Copy link

Hello, I'm extremely interested in this, is there any chance that this can be accepted? I have experience with snaps, and I'm willing to help if needed.

Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

snap/snapcraft.yaml Outdated Show resolved Hide resolved
snap/snapcraft.yaml Show resolved Hide resolved
snap/snapcraft.yaml Show resolved Hide resolved
@soumyaDghosh
Copy link
Author

Hello @jesseduffield Very sorry for the delay. Needed to take time off for exams and my laptop needed some service. I have made the changes as you requested.

Copy link
Owner

@jesseduffield jesseduffield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two more things

- go
override-pull: |
craftctl default
craftctl set version=$(git describe --tags --abbrev=0 | cut -c 2-)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little broad. Can we ensure it actually has the shape vX.Y

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always pull the latest tag. So, you want that if for some reason, you create a tag 45.0 instead of v45.0, the version is still shown as 45.0 right?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concern is that sometimes we will push random tags that aren't actually intended to be releases e.g. pre-releases or things I'm personally testing. So we need to get the latest tag with the correct shape (vX.Y)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhh... I get it. The problem is, at least at one place, you'll have to mention the version, it can be in the source where you're pulling it or version of the snap. We can definitely have a cron job to automate it, but when the snap is in the upstream repo, I believe that's the best option.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why I think the current implementation is the best. Where you just update the top-level version for the snap and the rest will be taken care of automatically.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not following: what's wrong with the override-pull approach that just gets the latest version tag?

snap/snapcraft.yaml Outdated Show resolved Hide resolved
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.

3 participants