提交 cc176307 编写于 作者: 李光春's avatar 李光春

tra

上级 1f8256c6
# 使用vendor文件夹构建
export GO15VENDOREXPERIMENT=1
export GOPROXY=https://goproxy.cn,direct
# 在工作目录创建源文件夹
mkdir -p $GOPATH/src/dtapps/golang/
# 拷贝代码到创建好的目录
cp -rf . $GOPATH/src/dtapps/golang/
# 进入项目
cd $GOPATH/src/dtapps/golang/
# 构建,在GOPATH下生成构建包
go mod tidy
# 列出文件
ls -lh
\ No newline at end of file
kind: pipeline
type: docker # 使用docker
name: default
steps:
- name: go-library
image: golang
commands:
- go mod tidy
- ls -lh
language: go
go:
- master
script:
- go mod tidy
- ls -lh
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册