第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我已經(jīng)為我的Github項目Captain設(shè)置了travis build

我已經(jīng)為我的Github項目Captain設(shè)置了travis build

Go
翻閱古今 2023-07-10 16:45:53
我已經(jīng)為我的Github項目Captain設(shè)置了travis build,?內(nèi)容.travis.yml是:language: gogo:? - 1.12.xscript:? makeenv:? - GO111MODULE=on GOPROXY=https://proxy.golang.org我的內(nèi)容Makefile是:# Go parametersBINARY_FOLDER=./binGOCMD=goGOBUILD=$(GOCMD) buildGOCLEAN=$(GOCMD) cleanGOTEST=$(GOCMD) testGOGET=$(GOCMD) getBINARY_NAME=captainBINARY_UNIX=$(BINARY_NAME)_unixall: test buildbuild:?? ? ? ? $(GOBUILD) -o $(BINARY_FOLDER)/$(BINARY_NAME) ./cmd/...test:?? ? ? ? $(GOTEST) -v ./...clean:?? ? ? ? rm -rf $(BINARY_FOLDER)run: all? ? ? ? $(BINARY_FOLDER)/$(BINARY_NAME)# Cross compilationbuild-linux:? ? ? ? CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -vdocker-build:? ? ? ? docker run --rm -it -v "$(GOPATH)":/go -w /go/src/bitbucket.org/rsohlich/makepost golang:latest go build -o "$(BINARY_UNIX)" -v當 travis 構(gòu)建觸發(fā)時,它會出錯:go test -v ./...go: finding github.com/gorilla/mux v1.7.3go: finding github.com/lib/pq v1.2.0go: finding github.com/google/uuid v1.1.1go: finding github.com/DATA-DOG/go-sqlmock v1.3.3go: downloading github.com/DATA-DOG/go-sqlmock v1.3.3go: downloading github.com/lib/pq v1.2.0go: extracting github.com/DATA-DOG/go-sqlmock v1.3.3go: extracting github.com/lib/pq v1.2.0# github.com/alwindoss/captain/cmd/captaincmd/captain/main.go:4:2: undefined: Run=== RUN? ?TestCreateWorklistPositiveScenario2019/08/10 14:56:19 Creating Worklist2019/08/10 14:56:19 {"id": "ID", "name": "name"}2019/08/10 14:56:19 Creating worklist in the RDBMS Store2019/08/10 14:56:19 Last Inserted ID: 12019/08/10 14:56:19 ID = 1, affected = 1--- PASS: TestCreateWorklistPositiveScenario (0.00s)=== RUN? ?TestCreateWorklistWhenBadRequestIsSent2019/08/10 14:56:19 Creating Worklist2019/08/10 14:56:19 This is a bad request--- PASS: TestCreateWorklistWhenBadRequestIsSent (0.00s)PASSok? ? ? github.com/alwindoss/captain/internal/handler? ?0.005sMakefile:15: recipe for target 'test' failedmake: *** [test] Error 2在作業(yè)日志中,我看到所有測試都通過了,但構(gòu)建并未超出此范圍。Makefile在我的 Mac 上本地運行也沒有問題。我不確定問題出在哪里。在 Makefile 中或以我配置 Travis CI 的方式。
查看完整描述

1 回答

?
胡子哥哥

TA貢獻1825條經(jīng)驗 獲得超6個贊

有趣的錯誤消息是:

cmd/captain/main.go:4:2: undefined: Run

因此,在您的第 4 行main.go,您引用了一個未定義的符號Run。


查看完整回答
反對 回復(fù) 2023-07-10
  • 1 回答
  • 0 關(guān)注
  • 138 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號