Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Tests failing in Linux: Package xkbcommon-x11 not found

未关闭
#682 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go, linux

调研方向

首先在 Linux 上运行 go test ./...,并检查针对 xkbcommon-x11 的 pkg-config 失败;payload 没有指出完整测试套件之外的源文件或测试。确定哪个测试依赖项需要此软件包,并记录或修正 Linux 测试设置,使完整测试套件能够通过。

由索引模型根据 Issue 内容生成。

描述

What are you trying to do?

Checkout Gonum, run all the tests

What did you do?
$ go test ./...
What did you expect to happen?

OK

What actually happened?
$ go test ./...
go: downloading gioui.org v0.0.0-20210308172011-57750fc8a0a6
go: downloading golang.org/x/sys v0.0.0-20210304124612-50617c2ba197
ok  	gonum.org/v1/plot	0.434s
ok  	gonum.org/v1/plot/cmpimg	0.948s
ok  	gonum.org/v1/plot/font	0.051s
?   	gonum.org/v1/plot/font/liberation	[no test files]
ok  	gonum.org/v1/plot/gob	0.086s
ok  	gonum.org/v1/plot/palette	0.168s
?   	gonum.org/v1/plot/palette/brewer	[no test files]
ok  	gonum.org/v1/plot/palette/moreland	2.450s
# pkg-config --cflags  -- egl wayland-egl wayland-client wayland-cursor x11 xkbcommon xkbcommon-x11 x11-xcb xcursor xfixes
Package xkbcommon-x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `xkbcommon-x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xkbcommon-x11' found
pkg-config: exit status 1
ok  	gonum.org/v1/plot/plotter	10.454s
...
...
FAIL
What version of Go and Gonum/plot are you using?
$ go version
go version go1.16 linux/amd64
$ git rev-parse HEAD
caab7788e04dfd7a74cec4ee80f55b7d1f9a2bfa

This is Gonum v0.9.0

Does this issue reproduce with the current master?

Yes

主要语言
Go
星标
3k
派生
202
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

gonum/plot 的其他 Issue

查看 gonum/plot 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。