Package Details: conftest 0.51.0-1

Git Clone URL: https://aur.archlinux.org/conftest.git (read-only, click to copy)
Package Base: conftest
Description: A utility to help you write tests against structured configuration data
Upstream URL: https://github.com/open-policy-agent/conftest
Keywords: kubernetes opa terraform
Licenses: Apache
Submitter: dbirks
Maintainer: brokenpip3 (brokenpip3-bot)
Last Packager: brokenpip3-bot
Votes: 3
Popularity: 0.000000
First Submitted: 2019-07-13 21:05 (UTC)
Last Updated: 2024-04-01 09:59 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

petronny commented on 2022-08-16 08:10 (UTC) (edited on 2022-08-16 08:10 (UTC) by petronny)

Yeah, disabling lto does solve the build for x86_64. Thanks for digging into the error.

So the actual problem is OOM since the default runners in GitHub Actions only have 7GB of RAM.

nairb774 commented on 2022-08-15 20:57 (UTC) (edited on 2022-08-15 21:01 (UTC) by nairb774)

~~The linked GitHub Actions log is not visible (permissions?).~~

Just needed to sign in. Oops.

The package both built locally fine, as well as builds using an empty container correctly (needs to be run from where this aur git repo is cloned):

docker run -it --rm -v $PWD:/aur archlinux/archlinux:base-devel@sha256:02adc50904d060f4e30610ad6bf487d3dac5505107e3060ea0576d92cde0961b /bin/bash -euxc 'pacman -Sy; cd /aur; groupadd --gid "$(stat -c %g .)" aur; useradd -m -G wheel --uid "$(stat -c %u .)" --gid "$(stat -c %g .)" aur; echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/90-wheel-nopw; sudo -u aur makepkg -cCs --noconfirm'

Final output:

...
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
==> Entering fakeroot environment...
==> Starting package()...
install: creating directory '/aur/pkg/conftest/usr/share'
install: creating directory '/aur/pkg/conftest/usr/share/bash-completion'
install: creating directory '/aur/pkg/conftest/usr/share/bash-completion/completions'
'/aur/src/conftest-0.34.0/completion/conftest' -> '/aur/pkg/conftest/usr/share/bash-completion/completions/conftest'
install: creating directory '/aur/pkg/conftest/usr/share/zsh'
install: creating directory '/aur/pkg/conftest/usr/share/zsh/site-functions'
'/aur/src/conftest-0.34.0/completion/_conftest' -> '/aur/pkg/conftest/usr/share/zsh/site-functions/_conftest'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "conftest"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: conftest 0.34.0-1 (Mon Aug 15 20:45:09 2022)
==> Cleaning up...
[root@c0c0e0da6835 aur]# ls -la
total 13104
drwxr-xr-x 3 aur  aur      4096 Aug 15 20:45 .
drwxr-xr-x 1 root root     4096 Aug 15 20:38 ..
-rw-r--r-- 1 aur  aur       501 Aug 14 23:25 .SRCINFO
drwxr-xr-x 9 aur  aur      4096 Aug 14 23:26 .git
-rw-r--r-- 1 aur  aur        30 Apr 26  2021 .gitignore
-rw-r--r-- 1 aur  aur      1404 Aug 14 23:17 PKGBUILD
-rw-r--r-- 1 aur  aur  13206731 Aug 15 20:45 conftest-0.34.0-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 aur  aur    183415 Aug 15 20:41 conftest-0.34.0.tar.gz

Is it possible that the Actions environment is incomplete or different in some way? The errors that are being dumped out are fairly core runtime functions that seem to be more indicative of an environmental issue than a code issue.

Looking around it seems like https://github.com/golang/go/issues/43505 is related. Does a change like https://github.com/archlinux/aur/commit/c8abb6f8f875fac5aa8ff5d6e32896b2b681a1c7 resolve the issue in your environment?

petronny commented on 2022-08-15 18:13 (UTC)

Build failed for x86_64: https://github.com/arch4edu/cactus/runs/7842779663?check_suite_focus=true

go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
# github.com/open-policy-agent/conftest
_cgo_callers: relocation target x_cgo_callers not defined
_cgo_init: relocation target x_cgo_init not defined
_cgo_mmap: relocation target x_cgo_mmap not defined
_cgo_munmap: relocation target x_cgo_munmap not defined
_cgo_notify_runtime_init_done: relocation target x_cgo_notify_runtime_init_done not defined
_cgo_sigaction: relocation target x_cgo_sigaction not defined
_cgo_thread_start: relocation target x_cgo_thread_start not defined
net._cgo_2ac87069779a_C2func_getaddrinfo: relocation target _cgo_2ac87069779a_C2func_getaddrinfo not defined
net._cgo_2ac87069779a_C2func_getnameinfo: relocation target _cgo_2ac87069779a_C2func_getnameinfo not defined
net._cgo_2ac87069779a_Cfunc_freeaddrinfo: relocation target _cgo_2ac87069779a_Cfunc_freeaddrinfo not defined
net._cgo_2ac87069779a_Cfunc_gai_strerror: relocation target _cgo_2ac87069779a_Cfunc_gai_strerror not defined
os/user._cgo_3c46bbe179bf_Cfunc__Cmalloc: relocation target _cgo_3c46bbe179bf_Cfunc__Cmalloc not defined
os/user._cgo_3c46bbe179bf_Cfunc_free: relocation target _cgo_3c46bbe179bf_Cfunc_free not defined
os/user._cgo_3c46bbe179bf_Cfunc_mygetgrgid_r: relocation target _cgo_3c46bbe179bf_Cfunc_mygetgrgid_r not defined
os/user._cgo_3c46bbe179bf_Cfunc_mygetpwuid_r: relocation target _cgo_3c46bbe179bf_Cfunc_mygetpwuid_r not defined
os/user._cgo_3c46bbe179bf_Cfunc_realloc: relocation target _cgo_3c46bbe179bf_Cfunc_realloc not defined
os/user._cgo_3c46bbe179bf_Cfunc_sysconf: relocation target _cgo_3c46bbe179bf_Cfunc_sysconf not defined
runtime._cgo_setenv: relocation target x_cgo_setenv not defined
runtime._cgo_unsetenv: relocation target x_cgo_unsetenv not defined
runtime.cgo_yield: relocation target _cgo_yield not defined
.rela: relocation target _cgo_yield not defined
/usr/lib/go/pkg/tool/linux_amd64/link: too many errors
==> ERROR: A failure occurred in build().

However, it can be built on aarch64. Amazing.

petronny commented on 2022-08-12 07:05 (UTC)

You may want to take a look at https://github.com/arch4edu/aur-auto-update to automatically update this package.

brokenpip3 commented on 2021-11-25 10:49 (UTC)

no I don't but afaik should be placed on /usr/share/fish/completions/

nairb774 commented on 2021-10-23 20:46 (UTC)

I added bash and zsh completions (along with an upgrade). Know of any fish examples I can crib from? Or docs?

brokenpip3 commented on 2021-10-19 22:34 (UTC)

Can we add the bash/fish/zsh completion to the pkgbuild?

see for example in upstream kubectl one: https://github.com/archlinux/svntogit-community/blob/68b976cb15dec833b8ac3a6c4f1fc246ef435d77/trunk/PKGBUILD#L90