diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-01-19 10:27:01 +0100 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-01-29 15:27:05 -0500 |
commit | 960baf1a0966794779ffe88b1e3f77f02993d764 (patch) | |
tree | 1f4952b694003e6169284112412278770e30391e /contrib/cirrus | |
parent | 9fa6aa885b64057f974b866506e0909d1cd30a4a (diff) | |
download | podman-960baf1a0966794779ffe88b1e3f77f02993d764.tar.gz podman-960baf1a0966794779ffe88b1e3f77f02993d764.tar.bz2 podman-960baf1a0966794779ffe88b1e3f77f02993d764.zip |
make bindings generation more robuts
The Go gods did not shine upon us trying to understand what's going on
in #9000. The symptom is that `go generate` did not add required
imports to a generated file, ultimately breaking subsequent compilation.
While it still remains unclear *why* Go is behaving like that, the
symptom disappears when `go generate` runs in module mode; that is
without `-mod=vendor` and without `GO111MODULE=off`. This was
reproducible on two separate machines (Ubuntu and Fedora).
Also, when facing an unset GOPATH, set it to Go's default (i.e.,
$HOME/go) and make sure that GOBIN is in PATH since `goimports`
is required by `go generate`.
Fixes: #9000
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'contrib/cirrus')
0 files changed, 0 insertions, 0 deletions