Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Tests fail #11

Open
phodina opened this issue Jan 11, 2022 · 0 comments
Open

Tests fail #11

phodina opened this issue Jan 11, 2022 · 0 comments

Comments

@phodina
Copy link

phodina commented Jan 11, 2022

Hi,

I'm porting this package into GNU Guix. When I run the tests I get these 2 errors:

phase `build' succeeded after 0.1 seconds
starting phase `check'
--- FAIL: TestFqdnHostname (0.00s)
    fqdn_test.go:22: Unexpected fqdn, got: localhost
--- FAIL: TestFromLookup (0.00s)
    fqdn_test.go:45: Unexpected error.
        	Expected: <nil>
        	Actual  : fqdn.errFqdnNotFound
FAIL
FAIL	github.com/Showmax/go-fqdn	0.007s
FAIL
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "go" arguments: ("test" "github.com/Showmax/go-fqdn") exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 0.8 seconds
command "go" "test" "github.com/Showmax/go-fqdn" failed with status 1

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
builder for `/gnu/store/i4v68lpc3bgyd2hcj0nz2rqxna5rjj0g-go-github-com-showmax-go-fqdn-1.0.0.drv' failed with exit code 1
build of /gnu/store/i4v68lpc3bgyd2hcj0nz2rqxna5rjj0g-go-github-com-showmax-go-fqdn-1.0.0.drv failed
View build log at '/var/log/guix/drvs/i4/v68lpc3bgyd2hcj0nz2rqxna5rjj0g-go-github-com-showmax-go-fqdn-1.0.0.drv.bz2'.
guix build: error: build of `/gnu/store/i4v68lpc3bgyd2hcj0nz2rqxna5rjj0g-go-github-com-showmax-go-fqdn-1.0.0.drv' failed

If I run the hostname outside the build environment I get my HOSTNAME. The package is build in a sandbox therefore the hostname returns localhost.

I can patch the package in the build process so that the test succeeds.

I'm just posting it here in case you'd have some other idea how to fix them :-)

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

No branches or pull requests

1 participant