我使用coding.net 创建了私有存储库。
我使用 docker images alpine和centos。
我可以从 docker git.coding.net/alphayan/orionv2.git successful-centos获取,但不能git.coding.net/alphayan/test.git从 docker-alpine获取。它返回一个错误说明:
/go/src # go get -u -v git.coding.net/alphayan/test.git
# cd .; git ls-remote https://git.coding.net/alphayan/test
fatal: could not read Username for 'https://git.coding.net': terminal prompts disabled
# cd .; git ls-remote git+ssh://git.coding.net/alphayan/test
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
# cd .; git ls-remote ssh://git.coding.net/alphayan/test
Permission denied (publickey).
fatal: Could …Run Code Online (Sandbox Code Playgroud) package main
import (
"fmt"
"sync"
)
func main() {
runtime.GOMAXPROCS(1)
w := &sync.WaitGroup{}
w.Add(2)
go func() {
fmt.Println("1")
w.Done()
}()
go func() {
fmt.Println("2")
w.Done()
}()
w.Wait()
}
Run Code Online (Sandbox Code Playgroud)
https://play.golang.org/p/ESi1mKAo1x_S
呃,我不知道为什么"2"首先打印.
我想检查一下这些信息.但是我不知道应该检查什么信息.所以我在那里发帖提问求助.
我认为第一个goroutine是第一个推入队列.它应该先打印.