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 摘要。