From 248135d63fa0350711730e996e335308bbc168c5 Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Wed, 6 Mar 2024 17:05:04 +0100 Subject: [PATCH] go: add goimports tool goimports automatically fixes imports of go src files. This fixes #2850. --- go.be0 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go.be0 b/go.be0 index 2f78ff3a3..933f6a20a 100755 --- a/go.be0 +++ b/go.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION go-1.22.0-0 +# BEE_VERSION go-1.22.0-1 # see also: https://golang.org/doc/install/source @@ -120,4 +120,6 @@ mee_install() { mkdir -pv ${D}${LIBDIR}/go/pkg cp -rv ${S}/pkg/tool ${D}${LIBDIR}/go/pkg cp -rv ${S}/pkg/include ${D}${LIBDIR}/go/pkg + + GOBIN=${D}${BINDIR} GO111MODULE=on ${D}${BINDIR}/go install golang.org/x/tools/cmd/goimports@latest }