Skip to contentSkip to conversation

go-helloworld: fix license

PATCH New Quentin Schulz 1 participant 1 message Aug 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 go-helloworld: fix license

From: Quentin Schulz <[email protected]>

The example repo doesn't seem to have ever been under MIT to begin with but rather Apache-2.0. It was then changed to the license used by the goland projectm that is BSD-3-Clause, 2 years ago in commit 00c7068f9d83 ("all: update to Go license"). It saw minor edits a year ago in commit 39e772fc2670 ("LICENSE: update per Google Legal").

The license file exists in the sources, so use that one instead of taking it from the OE-Core license directory.

License-Update: Incorrect license is now proper

---
kirkstone's version is apache-2.0, scarthgap's is already BSD-3-Clause but with a different checksum.

This should be backportable to walnascar as is though.

---
 meta/recipes-extended/go-examples/go-helloworld_0.1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/go-examples/go-helloworld_0.1.bb +2 -2
index f21cfbdf27e3eb84127115ce603282581539574e..5279c6a693237f9ed16b029d1329aca22b4aacb5 100644
@@ -2,8 +2,8 @@ SUMMARY = "This is a simple example recipe that cross-compiles a Go program."
 SECTION = "examples"
 HOMEPAGE = "https://golang.org/"
 
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=7998cb338f82d15c0eff93b7004d272a"
 
 SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}"
 SRCREV = "d7b0ac1278591aea848a99258ccfdee8e4d454c1"

---
base-commit: 3b2f9c31dc17c3ba5f6a9971413afed3d450d826
change-id: 20250811-go-helloworld-lic-617f3c380f5f

Best regards,

Signature · 1 line
Quentin Schulz <[email protected]>