Skip to contentSkip to conversation

go-systemd: Fix branch name (main instead master)

PATCH In review Daniel Dragomir 2 participants 2 messages May 11, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-systemd: Fix branch name (main instead master)

Upstream has renamed the master branch to main.

ERROR: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch:
Fetcher failure: Unable to find revision b4a58d95188dd092ae20072bac14cece0e67c388
in branch master even from upstream

---
 recipes-devtools/go/go-systemd_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go/go-systemd_git.bb +1 -1
index 0f89c0f..c21a0f9 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5"
 SRCNAME = "systemd"
 
 PKG_NAME = "github.com/coreos/go-${SRCNAME}"
-SRC_URI = "git://${PKG_NAME}.git"
+SRC_URI = "git://${PKG_NAME}.git;branch=main"
 
 SRCREV = "b4a58d95188dd092ae20072bac14cece0e67c388"
 PV = "4+git${SRCPV}"
Signature · 1 line
2.17.1
#1 lore raw

I had this one queued as well, but need to do a bit more testing.

I'd actually prefer that the fetch fix this, since the renaming of branches by the upstreams is such a pain.

To avoid this, I've actually changed it to nobranch, and will run with that for a bit.

Cheers,

Bruce

Quoted 31 lines · Daniel Dragomir

Upstream has renamed the master branch to main.

ERROR: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch:
Fetcher failure: Unable to find revision b4a58d95188dd092ae20072bac14cece0e67c388
in branch master even from upstream

---
 recipes-devtools/go/go-systemd_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/go/go-systemd_git.bb +1 -2
index 0f89c0f..c21a0f9 100644
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=19cbd64715b51267a47bf3750cc6a8a5"
 SRCNAME = "systemd"
 
 PKG_NAME = "github.com/coreos/go-${SRCNAME}"
-SRC_URI = "git://${PKG_NAME}.git"
+SRC_URI = "git://${PKG_NAME}.git;branch=main"
 
 SRCREV = "b4a58d95188dd092ae20072bac14cece0e67c388"
 PV = "4+git${SRCPV}"
--

2.17.1

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II