Merge pull request #14 from drone-plugins/module
feat(vendor): switch dep to go module
This commit is contained in:
commit
b68e3d07c6
26
.drone.yml
26
.drone.yml
@ -3,29 +3,24 @@ workspace:
|
|||||||
path: src/github.com/drone-plugins/drone-hugo
|
path: src/github.com/drone-plugins/drone-hugo
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
deps:
|
|
||||||
image: golang:1.10
|
|
||||||
pull: true
|
|
||||||
commands:
|
|
||||||
- go get -u github.com/golang/dep/cmd/dep
|
|
||||||
- dep ensure
|
|
||||||
- dep status
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: golang:1.10
|
image: golang:1.11
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- GO111MODULE=on
|
||||||
commands:
|
commands:
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- go test -cover ./...
|
- go test -cover ./...
|
||||||
|
|
||||||
build_linux_amd64:
|
build_linux_amd64:
|
||||||
image: golang:1.10
|
image: golang:1.11
|
||||||
pull: true
|
pull: true
|
||||||
group: build
|
group: build
|
||||||
environment:
|
environment:
|
||||||
- GOOS=linux
|
- GOOS=linux
|
||||||
- GOARCH=amd64
|
- GOARCH=amd64
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
- GO111MODULE=on
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
if test "${DRONE_TAG}" = ""; then
|
if test "${DRONE_TAG}" = ""; then
|
||||||
@ -35,13 +30,14 @@ pipeline:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# build_linux_arm64:
|
# build_linux_arm64:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
# - GOOS=linux
|
# - GOOS=linux
|
||||||
# - GOARCH=arm64
|
# - GOARCH=arm64
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
@ -51,7 +47,7 @@ pipeline:
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
# build_linux_arm:
|
# build_linux_arm:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
@ -59,6 +55,7 @@ pipeline:
|
|||||||
# - GOARCH=arm
|
# - GOARCH=arm
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
# - GOARM=7
|
# - GOARM=7
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
@ -68,13 +65,14 @@ pipeline:
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
# build_linux_386:
|
# build_linux_386:
|
||||||
# image: golang:1.10
|
# image: golang:1.11
|
||||||
# pull: true
|
# pull: true
|
||||||
# group: build
|
# group: build
|
||||||
# environment:
|
# environment:
|
||||||
# - GOOS=linux
|
# - GOOS=linux
|
||||||
# - GOARCH=386
|
# - GOARCH=386
|
||||||
# - CGO_ENABLED=0
|
# - CGO_ENABLED=0
|
||||||
|
# - GO111MODULE=on
|
||||||
# commands:
|
# commands:
|
||||||
# - |
|
# - |
|
||||||
# if test "${DRONE_TAG}" = ""; then
|
# if test "${DRONE_TAG}" = ""; then
|
||||||
@ -146,4 +144,4 @@ pipeline:
|
|||||||
pull: true
|
pull: true
|
||||||
secrets: [ webhook_url ]
|
secrets: [ webhook_url ]
|
||||||
when:
|
when:
|
||||||
status: [ success ]
|
status: [ success ]
|
||||||
|
28
Gopkg.lock
generated
28
Gopkg.lock
generated
@ -1,28 +0,0 @@
|
|||||||
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
||||||
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
digest = "1:40e195917a951a8bf867cd05de2a46aaf1806c50cf92eebf4c16f78cd196f747"
|
|
||||||
name = "github.com/pkg/errors"
|
|
||||||
packages = ["."]
|
|
||||||
pruneopts = "UT"
|
|
||||||
revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
|
|
||||||
version = "v0.8.0"
|
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
digest = "1:b24d38b282bacf9791408a080f606370efa3d364e4b5fd9ba0f7b87786d3b679"
|
|
||||||
name = "github.com/urfave/cli"
|
|
||||||
packages = ["."]
|
|
||||||
pruneopts = "UT"
|
|
||||||
revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
|
|
||||||
version = "v1.20.0"
|
|
||||||
|
|
||||||
[solve-meta]
|
|
||||||
analyzer-name = "dep"
|
|
||||||
analyzer-version = 1
|
|
||||||
input-imports = [
|
|
||||||
"github.com/pkg/errors",
|
|
||||||
"github.com/urfave/cli",
|
|
||||||
]
|
|
||||||
solver-name = "gps-cdcl"
|
|
||||||
solver-version = 1
|
|
38
Gopkg.toml
38
Gopkg.toml
@ -1,38 +0,0 @@
|
|||||||
# Gopkg.toml example
|
|
||||||
#
|
|
||||||
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
|
|
||||||
# for detailed Gopkg.toml documentation.
|
|
||||||
#
|
|
||||||
# required = ["github.com/user/thing/cmd/thing"]
|
|
||||||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
|
|
||||||
#
|
|
||||||
# [[constraint]]
|
|
||||||
# name = "github.com/user/project"
|
|
||||||
# version = "1.0.0"
|
|
||||||
#
|
|
||||||
# [[constraint]]
|
|
||||||
# name = "github.com/user/project2"
|
|
||||||
# branch = "dev"
|
|
||||||
# source = "github.com/myfork/project2"
|
|
||||||
#
|
|
||||||
# [[override]]
|
|
||||||
# name = "github.com/x/y"
|
|
||||||
# version = "2.4.0"
|
|
||||||
#
|
|
||||||
# [prune]
|
|
||||||
# non-go = false
|
|
||||||
# go-tests = true
|
|
||||||
# unused-packages = true
|
|
||||||
|
|
||||||
|
|
||||||
[[constraint]]
|
|
||||||
name = "github.com/pkg/errors"
|
|
||||||
version = "0.8.0"
|
|
||||||
|
|
||||||
[[constraint]]
|
|
||||||
name = "github.com/urfave/cli"
|
|
||||||
version = "1.20.0"
|
|
||||||
|
|
||||||
[prune]
|
|
||||||
go-tests = true
|
|
||||||
unused-packages = true
|
|
@ -6,13 +6,13 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"log"
|
|
||||||
"net/http"
|
|
||||||
"runtime"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
6
go.mod
Normal file
6
go.mod
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
module github.com/drone-plugins/drone-hugo
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/pkg/errors v0.8.1
|
||||||
|
github.com/urfave/cli v1.20.0
|
||||||
|
)
|
4
go.sum
Normal file
4
go.sum
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
|
||||||
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw=
|
||||||
|
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
|
Loading…
Reference in New Issue
Block a user