Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@buildroot.org
Cc: Anisse Astier <anisse@astier.eu>
Subject: Re: [Buildroot] [PATCH 1/2] package/go: set GOCACHE for download post-process
Date: Tue, 17 Jan 2023 10:27:18 +0100	[thread overview]
Message-ID: <875yd5fr49.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20230116105032.1890904-1-peter@korsgaard.com> (Peter Korsgaard's message of "Mon, 16 Jan 2023 11:50:31 +0100")

>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:

 > The go mod vendor call in support/download/go-post-process accesses the go
 > cache, so pass GOCACHE= in the environment to ensure our cache directory is
 > used.

 > The go cache defaults to ~/.cache/go-build if not set, so this fixes builds
 > where that location (or GOCACHE if set in the environment) is not writable:

 > rm -rf ~/.cache/go-build
 > chmod -w ~/.cache
 > make docker-compose-source
 > ..
 > failed to initialize build cache at /home/peko/.cache/go-build: mkdir /home/peko/.cache/go-build: permission denied
 > make[1]: *** [package/pkg-generic.mk:189:
 > /home/peko/source/buildroot/output/build/docker-compose-2.14.0/.stamp_downloaded]
 > Error 1

 > We use two different cache directories for target and host builds, but the
 > download/vendoring should be independent of the architecture, so use the
 > target variant even for host-only packages for simplicity.

 > Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

Committed to 2022.11.x and 2022.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2023-01-17  9:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-16 10:50 [Buildroot] [PATCH 1/2] package/go: set GOCACHE for download post-process Peter Korsgaard
2023-01-16 10:50 ` [Buildroot] [PATCH 2/2] package/go: explicitly set GOMODCACHE Peter Korsgaard
2023-01-16 20:30   ` Yann E. MORIN
2023-01-16 20:52     ` Peter Korsgaard
2023-01-16 20:38   ` Christian Stewart via buildroot
2023-01-16 20:55     ` Peter Korsgaard
2023-01-16 21:35       ` Christian Stewart via buildroot
2023-01-17  9:27   ` Peter Korsgaard
2023-01-16 20:26 ` [Buildroot] [PATCH 1/2] package/go: set GOCACHE for download post-process Yann E. MORIN
2023-01-16 20:36 ` Christian Stewart via buildroot
2023-01-16 20:56   ` Peter Korsgaard
2023-01-17  9:27 ` Peter Korsgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yd5fr49.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.com \
    --cc=anisse@astier.eu \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox