Skip to content

Commit

Permalink
go: add goimports tool
Browse files Browse the repository at this point in the history
goimports automatically fixes imports of go src files.

This fixes #2850.
  • Loading branch information
niclas committed Mar 6, 2024
1 parent b51a2d5 commit 248135d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go.be0
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
}

0 comments on commit 248135d

Please sign in to comment.