Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1196334

Bug#1070412: Fails to build due to hard coded OS platform

From Jochen Sprickerhof <jspricke@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1070412: Fails to build due to hard coded OS platform
Date 2024-05-05 08:10 +0200
Message-ID <IADep-bc9D-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: golang-github-kardianos-service
Version: 1.2.0-2
Severity: important
X-Debbugs-Cc: debian-wb-team@lists.debian.org
Usertags: unshare

Hi,

golang-github-kardianos-service fails to build when it can't detect the
OS platform:

=== RUN   TestPlatformName
    name_test.go:15: Platform is unix-systemv
    name_test.go:18: Platform() want: /^linux-.*$/, got: unix-systemv
--- FAIL: TestPlatformName (0.00s)


This happens for example in the sbuild unshare bachend.

The problem is that in the test:

https://sources.debian.org/src/golang-github-kardianos-service/1.2.1-1/name_test.go/?hl=13#L13

runtime.GOOS is hard coded to linux.

Cheers Jochen

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1070412: Fails to build due to hard coded OS platform Jochen Sprickerhof <jspricke@debian.org> - 2024-05-05 08:10 +0200

csiph-web