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

https://snapcraft.io/build: support building snaps from more than the default branch #2774

Closed
kyrofa opened this issue May 20, 2020 · 1 comment

Comments

@kyrofa
Copy link
Contributor

kyrofa commented May 20, 2020

Last I checked, https://snapcraft.io/build only supported building snaps from the default branch. Is that still the case? What about tags?

First of all, only supporting the default branch assumes a particular workflow that not all projects use. For example, gitflow doesn't use the default branch as a development trunk at all. This also doesn't support the very common use-case of release branches (a 3.0 branch that has 3.0.1, 3.0.2, etc).

@Lukewh asked me to specify what I'd like to see. In an ideal world, I'd like to be able to specify a relationship between the git branch and the snap track. For example, the Nextcloud snap has 11, 12, 13, 14, 15, 16, 17, and master branches. Whenever I land a commit to master I get a snap on latest/edge. Whenever I land a commit on 17, I get a snap on 17/edge, and so on. The only way I can do this today is to setup a sync from github to launchpad and then use launchpad to build a snap on changes to a given branch. This type of workflow is super common for larger projects, but getting that setup in Launchpad is non-trivial. It'd be great if https://snapcraft.io/build supported it with a decent UI.

That would be a great story, but I realize there's quite a bit of work outlined there. Is there a shorter-term thing we can do to enable projects using release branches like that without making them build snaps themselves or manually setup builds in LP? For example, regarding my above question: if we build on tag pushes we have somewhat of a workaround, it's just not entirely clear if that's supported.

@kyrofa kyrofa changed the title What causes https://snapcraft.io/build to build a new snap? https://snapcraft.io/build: support building snaps from more than the default branch Jul 28, 2020
@jkfran
Copy link
Contributor

jkfran commented Nov 3, 2021

Duplicate of #2861

@jkfran jkfran marked this as a duplicate of #2861 Nov 3, 2021
@jkfran jkfran closed this as completed Nov 3, 2021
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

3 participants