Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some checks fail on void linux #2874

Open
dkwo opened this issue Apr 29, 2024 · 1 comment
Open

some checks fail on void linux #2874

dkwo opened this issue Apr 29, 2024 · 1 comment

Comments

@dkwo
Copy link

dkwo commented Apr 29, 2024

I was looking at the package on Void linux. I made some small changes (latest version pending a go update):

 # Template file for 'gopass'
 pkgname=gopass
-version=1.15.11
+version=1.15.12
 revision=1
 build_style=go
-build_helper=qemu
 go_import_path=github.com/gopasspw/gopass
 go_package="${go_import_path} ${go_import_path}/cmd/..."
-makedepends="gnupg"
 depends="gnupg>=2 git"
+checkdepends="gnupg git age"
 short_desc="Slightly more awesome standard unix password manager for teams"
 maintainer="Felipe Nogueira <contato.fnog@gmail.com>"
 license="MIT"
 homepage="https://www.gopass.pw/"
 changelog="https://raw.githubusercontent.com/gopasspw/gopass/master/CHANGELOG.md"
 distfiles="https://github.com/gopasspw/gopass/archive/v${version}.tar.gz"
-checksum=f85610a4f114125bd21e1100d6a2970c7ab76f09a7e094aa6be378018979eb56
+checksum=803d779bc55aab3c1e0ade85612f287b3007cd5316a7a571314e08b015a95426
+
+do_check() {
+       go test -v ./...
+}

and wanted to also run tests. Right now some are failing (and some are skipped):

=== RUN   TestInvalidYAML
    yaml_test.go:63: Failed to stat GOPASS_BINARY : stat : no such file or directory
--- SKIP: TestInvalidYAML (0.00s)
=== CONT  TestListRegressions1628
    list_test.go:60: Failed to stat GOPASS_BINARY : stat : no such file or directory
--- SKIP: TestListRegressions1628 (0.00s)
PASS
ok  	github.com/gopasspw/gopass/tests	(cached)
=== RUN   TestPubring
=== PAUSE TestPubring
=== CONT  TestPubring
--- PASS: TestPubring (0.01s)
PASS
ok  	github.com/gopasspw/gopass/tests/can	(cached)
FAIL
=> ERROR: gopass-1.15.12_1: do_check: 'go test -v ./...' exited with 1
=> ERROR:   in do_check() at srcpkgs/gopass/template:19

Does anyone know how to fix these?

@dkwo
Copy link
Author

dkwo commented Apr 30, 2024

If I only do certain tests, then no failure:

do_check() {
GOPASS_BINARY=${GOPATH}/bin/gopass go test -v ./tests
}

What are the suggested tests to be run in the build chroot? only the tests folder (passing), or the full ./... (failing)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants