diff options
| author | Peter Bergin <peter@berginkonsult.se> | 2026-05-13 19:05:32 +0200 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-06-10 14:35:20 +0100 |
| commit | 5c73c64d0028b7443ce3e26208edd158265b632c (patch) | |
| tree | 3ce48de94d3bec5abe38a93e5dce766f11380f52 /meta | |
| parent | 0bdd741e4db452f7ec0524d1e5c4afb521d8ba7b (diff) | |
| download | poky-5c73c64d0028b7443ce3e26208edd158265b632c.tar.gz | |
go.bbclass: disable workspaces
go has a feature of workspaces [1]. If there is a file called go.work
in your working directory on any of its parent directories that will
be read and used during build. For OE where the builds shall
be sandboxed this is bad as a workspace file outside of the build
environment can be picked up. This commit wil disable that feature
according to the instruction in [1].
This was found and introduced build failures when a file go.work was
in the parent directory outside of OE build directory.
[1] https://go.dev/ref/mod#workspaces
(From OE-Core rev: 9538bcefab6881805d60d9f362e0b70996b5e2f9)
Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(From OE-Core rev: c52c5e88626968b08510818f09829f2e1c9f94ae)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/go.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass index 61b08a082f..36103e8eb0 100644 --- a/meta/classes-recipe/go.bbclass +++ b/meta/classes-recipe/go.bbclass | |||
| @@ -22,6 +22,7 @@ export GOARCH = "${TARGET_GOARCH}" | |||
| 22 | export GOOS = "${TARGET_GOOS}" | 22 | export GOOS = "${TARGET_GOOS}" |
| 23 | export GOHOSTARCH="${BUILD_GOARCH}" | 23 | export GOHOSTARCH="${BUILD_GOARCH}" |
| 24 | export GOHOSTOS="${BUILD_GOOS}" | 24 | export GOHOSTOS="${BUILD_GOOS}" |
| 25 | export GOWORK = "off" | ||
| 25 | 26 | ||
| 26 | GOARM[export] = "0" | 27 | GOARM[export] = "0" |
| 27 | GOARM:arm:class-target = "${TARGET_GOARM}" | 28 | GOARM:arm:class-target = "${TARGET_GOARM}" |
