/srv/irclogs.ubuntu.com/2017/06/27/#launchpad.txt

=== chihchun_afk is now known as chihchun
=== rumble is now known as grumble
stubWhy do we have +git in urls like git+ssh://git.launchpad.net/project/+git/repo or git+ssh://git.launchpad.net/~uname/project/+git/repo ?08:10
wgrantstub: The former doesn't exist.08:11
wgrantThe latter is usually shortened to git+ssh://git.launchpad.net/~USER/PROJECT, unless the user requires multiple repos for the same project.08:11
stubI keep ending up with multiple repos (software, charm, deb packaging, maybe snap packaging)08:12
stubIs the +git there to keep the paths the same with the https: url namespace? And +git needed there for disambiguation?08:13
wgrantstub: Seems like you might be able to get away with different branches for that.08:15
wgrantstub: But yes, we didn't want to have a path mismatch between git.launchpad.net and launchpad.net.08:15
stubyeah, but orphaned branches and multiple working trees is a solution that is worse than the problem08:15
stubmulti-repos seems easier to work with08:16
stubSo I could use teamname, project name and repo calculate the git url unambiguously, except for non-project repos or distro packaging branches08:17
wgrantstub: What are you trying to do?08:18
wgrantAll Git repositories have a full path of the form ~OWNER/TARGET/+git/REPO08:18
wgrantWhere TARGET is PROJECT or DISTRIBUTION/+source/PACKAGE08:18
wgrantThere are additionally TARGET and ~OWNER/TARGET aliases which may point to one of the in-scope repositories.08:18
wgranthttps://help.launchpad.net/Code/Git#Repository_URLs08:19
stubThinking about 'go get launchpad.net/project', 'go get launchpad.net/~owner/project' and 'go get launchpad.net/~owner/project/repo'08:19
wgrantoh, and TARGET may be omitted for junk repos, of course.08:19
stub(and all the related go tooling, which is based on 'go get')08:19
stubWondering if it is an LP problem, adding the magic headers so we can pull private branches and such, or a go tool problem, extending its support of launchpad.net for bzr branches to bzr + git08:20
wgrantstub: LP already gross language-specific HTML metadata.08:22
wgrant"go get launchpad.net/foo" should work for bzr or git.08:22
wgrantProject pages have a go-import meta tag08:23
stubNot for private branches, which I guess makes this a go tool problem08:24
cjwatsonYou can have multiple working trees for the same repository, of course08:24
cjwatsonEspecially with modern git and git-worktree, though you can always just have multiple clones08:25
stubcjwatson: yes. I do that to maintain a 'built' branch in some of my charms, but it gets tricky and I'm not sure it is worth it.08:25
stub(charm built to another branch/worktree of the same repo)08:26
stubc/built/build/08:26
rbasakUsing separate repositories instead of multiple worktrees introduces a further problem of having to always push to the right place to get the repository itself updated correctly.08:26
cjwatsonUsually I find that a profusion of repositories for basically the same project indicates that I'm doing something wrong :)08:26
rbasakWorktrees were invented to solve these problems :)08:27
wgrantWe support multiple repositories per (user, target) mostly for cases where different permissions are required.08:27
stubMy packaging branch has my software pulled in as a git submodule at the moment. I'm trying to work out the least worst solution.08:27
cjwatsongit-dpm08:28
cjwatson(IMO)08:28
stubta08:29
rbasakWhy not merge the upstream in to the packaging branch? That's another way that is very common (gbp).08:29
stubIts particularly crappy with go, where stuff will only build if it is located in $GOPATH/src/package, yet other projects using the software as a library need things at the top level08:29
cjwatson(git-dpm also merges the upstream into the packaging branch; the main difference between the two is in the style of patch management)08:29
rbasak(IMHO, git-dpm is quite complicated to grasp, and gbp is much easier when big sets of patches upon upstream are not needed)08:29
cjwatsonYeah, as usual there are multiple different factions :-)  But either gbp or git-dpm is waaaaaaaaaaaaay saner than submodules.08:30
stubI tried to make a submodule of another branch in the same repo the other day. But that failed.08:31
wgrantEverything about submodules is awful.08:31
rbasakI've found that submodules don't work so well when you have branches with the submodules rooted at different places (or going from branches with a submodule to branches without, etc).08:32
rbasakIt's workable but it seems to me that an understanding of the internals is needed in that case - which I do know, but the UX seems especially poor otherwise.08:32
cjwatsonI've found that submodules don't work so well08:32
rbasak:-)08:32
stubleast worse solution ;)08:33
stub(or is it least worst solution? )08:33
wgrantSubmodules are worst worst.08:33
stubSome people prefer them to subtrees08:33
cjwatsonI have one remaining place where I used submodules and I regret it.  Should've just merged.08:34
cjwatson(debian/grub-extras in the grub2 packaging)08:34
rbasakIs it possible to use a merge process instead of multiple submodules? I've never tried that.08:34
cjwatsonShould be, subtree merge strategy or similar08:34
=== chihchun is now known as chihchun_afk
=== tacocat` is now known as tacocat
=== JoseeAntonioR is now known as jose
=== hrybacki|trainin is now known as hrybacki
=== heber_ is now known as heber
=== shadeslayer_ is now known as shadeslayer
=== lan3y is now known as Laney
=== heber is now known as heber_lunch
=== nacc_ is now known as nacc
=== heber_lunch is now known as heber
=== wxl_ is now known as wxl

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!