diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-23 20:13:20 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-26 15:21:20 +0000 |
commit | 07176f26099e65f2c6434ba7541ec528db6d3f9c (patch) | |
tree | 26e46f406a159f08fdea6986562729dfaf5adb4b | |
parent | b1eea8178ae36ca82918f658b6bffd7da9fe7a1f (diff) | |
download | poky-07176f26099e65f2c6434ba7541ec528db6d3f9c.tar.gz |
go-helloworld: Turn into a go module enabled build
(From OE-Core rev: 86aacbc889830846150ff2d0f1cd7ba00a2c10f6)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/go-examples/go-helloworld_0.1.bb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-extended/go-examples/go-helloworld_0.1.bb b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb index ab70ea98a3..d3f7525dc9 100644 --- a/meta/recipes-extended/go-examples/go-helloworld_0.1.bb +++ b/meta/recipes-extended/go-examples/go-helloworld_0.1.bb | |||
@@ -6,13 +6,14 @@ LICENSE = "MIT" | |||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
7 | 7 | ||
8 | SRC_URI = "git://${GO_IMPORT}" | 8 | SRC_URI = "git://${GO_IMPORT}" |
9 | SRCREV = "46695d81d1fae905a270fb7db8a4d11a334562fe" | 9 | SRCREV = "bcf50bfd7dcd8020c90965747d857ae42802e0c5" |
10 | UPSTREAM_CHECK_COMMITS = "1" | 10 | UPSTREAM_CHECK_COMMITS = "1" |
11 | 11 | ||
12 | GO_IMPORT = "github.com/golang/example" | 12 | GO_IMPORT = "github.com/golang/example" |
13 | GO_INSTALL = "${GO_IMPORT}/hello" | 13 | GO_INSTALL = "${GO_IMPORT}/hello" |
14 | GO_WORKDIR = "${GO_INSTALL}" | ||
14 | 15 | ||
15 | inherit go | 16 | inherit go-mod |
16 | 17 | ||
17 | # This is just to make clear where this example is | 18 | # This is just to make clear where this example is |
18 | do_install_append() { | 19 | do_install_append() { |