Workaround for failed test go test time
with go version go1.18.1 in buildpack-deps:22.04-curl
#411
Unanswered
player9998
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I hope you are all safe! With my openvscode-server container, I experienced the following issue:
go test time
(orgo test all
) fails withpanic: cannot load America/Los_Angeles for testing: unknown time zone America/Los_Angeles; you may want to use -tags=timetzdata
It seems that the test tries to read the file
zoneinfo.zip
from the non-existing (hard-coded?) directory/usr/lib/go-1.18/lib/time
. I found a workaround and added it to myContainerfile
. Let me know, if you have a more elegant solution. 😄 Probably fixed with the newer Go version 1.19., available as golang-1.19 in Ubuntu 22.10 (Kinetic Kudu).Error message in Open VS Code Server terminal:
Additional info:
Containerfile including the workaround:
Steps to reproduce:
In Open VS Code Server terminal, run
go test time
Beta Was this translation helpful? Give feedback.
All reactions