diff options
| -rw-r--r-- | meta/classes-recipe/go-mod.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes-recipe/go-mod.bbclass b/meta/classes-recipe/go-mod.bbclass index ca3a690d05..2083d7f2d1 100644 --- a/meta/classes-recipe/go-mod.bbclass +++ b/meta/classes-recipe/go-mod.bbclass | |||
| @@ -22,9 +22,9 @@ GOBUILDFLAGS:append = " -modcacherw" | |||
| 22 | 22 | ||
| 23 | inherit go | 23 | inherit go |
| 24 | 24 | ||
| 25 | export GOMODCACHE = "${S}/pkg/mod" | ||
| 26 | GO_MOD_CACHE_DIR = "${@os.path.relpath(d.getVar('GOMODCACHE'), d.getVar('WORKDIR'))}" | ||
| 27 | do_unpack[cleandirs] += "${GOMODCACHE}" | ||
| 28 | |||
| 25 | GO_WORKDIR ?= "${GO_IMPORT}" | 29 | GO_WORKDIR ?= "${GO_IMPORT}" |
| 26 | do_compile[dirs] += "${B}/src/${GO_WORKDIR}" | 30 | do_compile[dirs] += "${B}/src/${GO_WORKDIR}" |
| 27 | |||
| 28 | export GOMODCACHE = "${B}/.mod" | ||
| 29 | |||
| 30 | do_compile[cleandirs] += "${B}/.mod" | ||
