gpt4 book ai didi

去测试 foo - 找不到包 foo

转载 作者:数据小太阳 更新时间:2023-10-29 03:36:33 27 4
gpt4 key购买 nike

我有这样的目录结构:

https://github.com/netjet-chrome-extension/netjet-mono/tree/master/examples/projects/golang

我尝试运行 test.sh,它包括:

#!/usr/bin/env bash

cd "$(dirname "$BASH_SOURCE")"
export GOPATH="$PWD"
go test sourcegraph_go_selenium

但是我得到这个错误:

can't load package: package sourcegraph_go_selenium: cannot find package "sourcegraph_go_selenium" in any of: /usr/lib/go-1.10/src/sourcegraph_go_selenium (from $GOROOT) /home/oleg/codes/netjet/netjet-mono/examples/projects/golang/src/sourcegraph_go_selenium (from $GOPATH)

GOPATH设置正确,为什么找不到sourcegraph_go_selenium包?这个包就在那里,在 src/sourcegraph_go_selenium...?

最佳答案

试试这个:

go test sourcegraph_go_selenium/...

关于去测试 foo - 找不到包 foo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53550825/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com