[Buildroot] [PATCH 1/4] package/mender-artifact: bump version to 3.4.0

Mirza Krak mirza.krak at northern.tech
Thu Aug 6 12:41:23 UTC 2020


On Thu, Aug 6, 2020 at 12:57 PM Mirza Krak <mirza.krak at northern.tech> wrote:
>
> On Fri, Jul 17, 2020 at 2:51 PM Thomas Petazzoni
> <thomas.petazzoni at bootlin.com> wrote:
> >
> > On Wed, 15 Jul 2020 10:37:04 -0700
> > aduskett at gmail.com wrote:
> >
> > > From: Adam Duskett <Aduskett at gmail.com>
> > >
> > > Update the following license file hashes due to copyright year changes:
> > >   - vendor/github.com/mendersoftware/mendertesting/LICENSE
> > >   - vendor/github.com/davecgh/go-spew/LICENSE
> > >   - vendor/github.com/stretchr/testify/LICENSE
> > >
> > > Add hashes for the the following new files:
> > >   - vendor/github.com/minio/sha256-simd/LICENSE
> > >   - vendor/gopkg.in/yaml.v2/LICENSE
> > >   - vendor/github.com/klauspost/compress/LICENSE
> > >   - vendor/github.com/russross/blackfriday/v2/LICENSE.txt
> > >   - vendor/github.com/klauspost/pgzip/LICENSE
> > >   - vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
> > >   - vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE
> > >
> > > Signed-off-by: Adam Duskett <Aduskett at gmail.com>
> >
> > I don't know if this is exactly related to this version bump, but after
> > this, I'm seeing my autobuilder fails to remove the output directory,
> > with lots of:
> >
> > rm: cannot remove '/home/test/autobuild/run/instance-2/output-1/build/host-mender-artifact-3.4.0/_gopath/pkg/mod/github.com/klauspost/compress at v1.10.5/zip/testdata/utf8-osx.zip': Permission denied
>
> Not sure if anyone else has followed up on this, but could not find a
> response so I will try.
>
> This is indeed intentional to the extent that this is how GO works
> when you are using "go mod" (which mender-artifact now does). We are
> not first ones having these problems and there are several tickets
> discussing this, e.g [1]. This should be applicable to any GO package
> in Buildroot that uses "go mod"
>
> There seems to be two ways to get around this,
>
> 1. Use 'go clean -modcache' command which should remove these files
> 2. Use "-modcacherw" flag of "go mod" which will make these files R/W
> (this is only available after GO 1.14.x [2])

Actually there is a third option, this works as well,

    $ git diff
    diff --git a/package/mender-artifact/mender-artifact.mk
b/package/mender-artifact/mender-artifact.mk
    index c81ec9ba53..884fcd6eec 100644
    --- a/package/mender-artifact/mender-artifact.mk
    +++ b/package/mender-artifact/mender-artifact.mk
    @@ -33,6 +33,8 @@ HOST_MENDER_ARTIFACT_DEPENDENCIES = host-xz

     HOST_MENDER_ARTIFACT_LDFLAGS = -X
main.Version=$(HOST_MENDER_ARTIFACT_VERSION)

    +HOST_MENDER_ARTIFACT_GO_ENV = GOFLAGS="-mod=vendor"
    +
     HOST_MENDER_ARTIFACT_BUILD_TARGETS = cli/mender-artifact

     HOST_MENDER_ARTIFACT_BIN_NAME = mender-artifact

-- 
Mirza Krak | Embedded Solutions Architect | https://mender.io

 Northern.tech AS | @northerntechHQ



More information about the buildroot mailing list