All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: Hongxu Jia <hongxu.jia@windriver.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH V2] cri-o: workaround failure since go upgraded to 1.13
Date: Sun, 1 Dec 2019 23:07:50 -0500	[thread overview]
Message-ID: <20191202040747.GA27299@gmail.com> (raw)
In-Reply-To: <20191201082034.38965-1-hongxu.jia@windriver.com>

In message: [meta-virtualization][PATCH V2] cri-o: workaround failure since go upgraded to 1.13
on 01/12/2019 Hongxu Jia wrote:

> Since go was upgraded to 1.13, there is a failure:
> ...
> | src/vendor/golang.org/x/net/http2/frame.go:17:2: use of vendored package not allowed
> | ../../../recipe-sysroot/usr/lib64/go/src/net/http/h2_bundle.go:49:2: use of vendored package not allowed
> ...
> 
> Refer upstream suggestion [1]:
> `or copying your vendor contents into GOPATH/src rather than
> mapping them in to GOPATH/src/vendor.'
> 
> [1] https://github.com/golang/go/issues/34068

v2 is merged.

Bruce

> 
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>  recipes-containers/cri-o/cri-o_git.bb | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb
> index 8d754ec..4fee385 100644
> --- a/recipes-containers/cri-o/cri-o_git.bb
> +++ b/recipes-containers/cri-o/cri-o_git.bb
> @@ -109,6 +109,9 @@ do_compile() {
>  	# fixes the bin/crio build of oe_runmake binaries below
>  	ln -sf ../../../../cmd/crio ${S}/src/import/src/github.com/cri-o/cri-o/cmd/
>  
> +	# workaround `use of vendored package not allowed' failure
> +	mv ${S}/src/import/vendor/golang.org  ${S}/src/import/
> +
>  	cd ${S}/src/import
>  
>  	if [ "${CRIO_BUILD_CROSS}" = "1" ]; then
> -- 
> 2.21.0
> 

      reply	other threads:[~2019-12-02  4:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-01  8:20 [meta-virtualization][PATCH V2] cri-o: workaround failure since go upgraded to 1.13 hongxu
2019-12-02  4:07 ` Bruce Ashfield [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=20191202040747.GA27299@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=hongxu.jia@windriver.com \
    --cc=meta-virtualization@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.