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

zoneinfo.zip not found building go code on Debian sid #4256

Open
brianmay opened this issue Feb 10, 2025 · 0 comments
Open

zoneinfo.zip not found building go code on Debian sid #4256

brianmay opened this issue Feb 10, 2025 · 0 comments

Comments

@brianmay
Copy link

Copied from bazelbuild/bazel#25172, I was asked to file this bug report here.

Description of the bug:

When trying to build an application that uses go code using bazel 8 on a Debian sid (and bookworm) system I get the following error:

ERROR: Traceback (most recent call last):
	File "/home/brian/.cache/bazel/_bazel_brian/d79bf7373ff1581a7e2123fde6aa1a40/external/rules_go++go_sdk+sfp-next__host_0/BUILD.bazel", line 116, column 9, in <toplevel>
		glob([
Error in glob: glob pattern 'lib/time/zoneinfo.zip' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).

This comes from:

https://github.com/bazel-contrib/rules_go/blob/master/go/private/BUILD.sdk.bazel#L115-L121

If I try to search for packages in Debian that provide the zoneinfo.zip file I get nothing:

https://packages.debian.org/search?searchon=contents&keywords=zoneinfo.zip&mode=path&suite=unstable&arch=any

This is using the go package from Debian sid:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-==============================================
ii  golang-1.22    1.22.11-1    all          Go programming language compiler - metapackage

This seems to be a Debian specific issue. I have had reports that other distributions supply the zoneinfo.zip file and as such are fine. But Debian doesn't appear to supply this file with the go compiler.

Debian does not supply Bazel 8 (as far as I can tell anyway), so filing the report here.

Which category does this issue belong to?

Rules API

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Still trying to find a simple Bazel 8 go example to reproduce the issue, but so far without luck.

Basically just build any project that requires Bazel 8 and go on a Debian system should do it, I think.

Which operating system are you running Bazel on?

Debian Sid

What is the output of bazel info release?

release 8.0.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?


If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

golang/go#20969
golang/go#34188

Same error but different because these don't involve bazel, it looks like bazel needs zoneinfo.zip and won't fallback to the system timezone database.

Any other information, logs, or outputs that you want to share?

No response

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

No branches or pull requests

1 participant