runtime更改包名

master v1.1.1
liuzhiguo 6 months ago
parent 61e33e2cab
commit 846d9f15de

@ -12,7 +12,7 @@ Drone Non-Commercial License
Contributor: Drone.IO, Inc.
Source Code: https://github.com/drone/drone-runtime
Source Code: https://git.awesome-for.me/liuzhiguo/drone-runtime
This license lets you use and share this software for free,
with a trial-length time limit on commercial use. Specifically:

@ -22,7 +22,7 @@ import (
"os"
"strings"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
// config represents the Docker client configuration,

@ -10,7 +10,7 @@ import (
"os"
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"github.com/google/go-cmp/cmp"
)

@ -17,7 +17,7 @@ package docker
import (
"strings"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"

@ -8,7 +8,7 @@ import (
"reflect"
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"

@ -22,9 +22,9 @@ import (
"io"
"io/ioutil"
"github.com/drone/drone-runtime/engine"
"github.com/drone/drone-runtime/engine/docker/auth"
"github.com/drone/drone-runtime/engine/docker/stdcopy"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker/auth"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker/stdcopy"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/network"

@ -19,7 +19,7 @@ import (
"bytes"
"time"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
// helper function creates a tarfile that can be uploaded

@ -10,7 +10,7 @@ import (
"io"
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
func TestCreateTarfile(t *testing.T) {

@ -7,9 +7,9 @@ package kube
import (
"bytes"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"github.com/ghodss/yaml"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

@ -11,10 +11,10 @@ import (
"path/filepath"
"time"
"github.com/drone/drone-runtime/engine"
"github.com/drone/drone-runtime/engine/docker/auth"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker/auth"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/informers"

@ -7,12 +7,12 @@ package kube
import (
"path"
"path/filepath"
"strings"
"strconv"
"strings"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"

@ -6,7 +6,7 @@ package mock_engine
import (
context "context"
engine "github.com/drone/drone-runtime/engine"
engine "git.awesome-for.me/liuzhiguo/drone-runtime/engine"
gomock "github.com/golang/mock/gomock"
io "io"
reflect "reflect"

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build !linux
// +build !linux
package plugin
@ -9,7 +10,7 @@ package plugin
import (
"errors"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
// Symbol the symbol name used to lookup the plugin provider value.

@ -2,6 +2,7 @@
// Use of this source code is governed by the Drone Non-Commercial License
// that can be found in the LICENSE file.
//go:build go1.8 && linux
// +build go1.8,linux
package plugin
@ -9,7 +10,7 @@ package plugin
import (
"plugin"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
// Symbol the symbol name used to lookup the plugin provider value.

@ -1,22 +1,36 @@
module github.com/drone/drone-runtime
module git.awesome-for.me/liuzhiguo/drone-runtime
go 1.20
replace github.com/docker/docker => github.com/docker/engine v17.12.0-ce-rc1.0.20200309214505-aa6a9891b09c+incompatible
require (
git.awesome-for.me/liuzhiguo/signal v1.0.1
github.com/docker/distribution v0.0.0-20170726174610-edc3ab29cdff
github.com/docker/docker v1.13.1
github.com/ghodss/yaml v1.0.0
github.com/golang/mock v1.1.1
github.com/google/go-cmp v0.4.0
github.com/mattn/go-isatty v0.0.4
github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4
golang.org/x/sync v0.0.0-20190423024810-112230192c58
k8s.io/api v0.0.0-20181130031204-d04500c8c3dd
k8s.io/apimachinery v0.0.0-20181201231028-18a5ff3097b4
k8s.io/client-go v9.0.0+incompatible
)
require (
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
github.com/Microsoft/go-winio v0.4.11 // indirect
github.com/containerd/containerd v1.3.4 // indirect
github.com/docker/distribution v0.0.0-20170726174610-edc3ab29cdff
github.com/docker/docker v1.13.1
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/go-connections v0.3.0 // indirect
github.com/docker/go-units v0.3.3 // indirect
github.com/drone/signal v1.0.0
github.com/ghodss/yaml v1.0.0
github.com/gogo/protobuf v0.0.0-20170307180453-100ba4e88506 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/mock v1.1.1
github.com/golang/protobuf v1.3.3 // indirect
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c // indirect
github.com/google/go-cmp v0.4.0
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gorilla/mux v1.7.4 // indirect
@ -24,31 +38,28 @@ require (
github.com/hashicorp/golang-lru v0.5.0 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/json-iterator/go v1.1.5 // indirect
github.com/mattn/go-isatty v0.0.4
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.8.0 // indirect
github.com/sirupsen/logrus v1.6.0 // indirect
github.com/spf13/pflag v1.0.3 // indirect
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3 // indirect
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 // indirect
golang.org/x/net v0.0.0-20190603091049-60506f45cf65 // indirect
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 // indirect
golang.org/x/sync v0.0.0-20190423024810-112230192c58
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 // indirect
golang.org/x/text v0.3.2 // indirect
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect
google.golang.org/grpc v1.30.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
gotest.tools v2.2.0+incompatible // indirect
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc // indirect
k8s.io/api v0.0.0-20181130031204-d04500c8c3dd
k8s.io/apimachinery v0.0.0-20181201231028-18a5ff3097b4
k8s.io/client-go v9.0.0+incompatible
k8s.io/klog v0.1.0 // indirect
sigs.k8s.io/yaml v1.1.0 // indirect
)

@ -1,4 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
git.awesome-for.me/liuzhiguo/signal v1.0.1 h1:mBM9eWpySUkw5rYI3vE5BqPR0LsnepSZbktjSYoO/LU=
git.awesome-for.me/liuzhiguo/signal v1.0.1/go.mod h1:Vc38edEqTrY9+u6G37itWMxCWUuwuUn1fFKl2HBBvd8=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
@ -19,8 +21,6 @@ github.com/docker/go-connections v0.3.0 h1:3lOnM9cSzgGwx8VfK/NGOW5fLQ0GjIlCkaktF
github.com/docker/go-connections v0.3.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk=
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/drone/signal v1.0.0 h1:NrnM2M/4yAuU/tXs6RP1a1ZfxnaHwYkd0kJurA1p6uI=
github.com/drone/signal v1.0.0/go.mod h1:S8t92eFT0g4WUgEc/LxG+LCuiskpMNsG0ajAMGnyZpc=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
@ -34,7 +34,6 @@ github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18h
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
@ -42,7 +41,6 @@ github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c h1:964Od4U6p2jUkFxvCydnIczKteheJEzHRToSGK3Bnlw=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0 h1:+dTQ8DZQJz0Mb/HjFlkptS1FeQ4cWSnN941F8aEG4SQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
@ -98,14 +96,12 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190311183353-d8887717615a h1:oWX7TPOiFAMXLq8o0ikBYfCJVlRHBcsciT5bXOrH628=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65 h1:+rhAzEzT3f4JtomfC371qB+0Ola2caSKcY69NUBZrRQ=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 h1:uESlIz09WIHT2I+pasSXcpLYqYK8wHcdCetU3VuMBJE=
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f h1:wMNYb4v58l5UBM7MYRLPG6ZhfOqbKu7X5eyFl8ZhKvA=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
@ -114,7 +110,6 @@ golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5h
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
@ -128,7 +123,6 @@ golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBn
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc=
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=

@ -14,13 +14,13 @@ import (
"github.com/mattn/go-isatty"
"github.com/drone/drone-runtime/engine"
"github.com/drone/drone-runtime/engine/docker"
"github.com/drone/drone-runtime/engine/docker/auth"
"github.com/drone/drone-runtime/engine/kube"
"github.com/drone/drone-runtime/runtime"
"github.com/drone/drone-runtime/runtime/term"
"github.com/drone/signal"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/docker/auth"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine/kube"
"git.awesome-for.me/liuzhiguo/drone-runtime/runtime"
"git.awesome-for.me/liuzhiguo/drone-runtime/runtime/term"
"git.awesome-for.me/liuzhiguo/signal"
)
var tty = isatty.IsTerminal(os.Stdout.Fd())

@ -14,7 +14,7 @@
package runtime
import "github.com/drone/drone-runtime/engine"
import "git.awesome-for.me/liuzhiguo/drone-runtime/engine"
type status struct {
step *engine.Step

@ -7,7 +7,7 @@ package runtime
import (
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
func TestIsSerial(t *testing.T) {

@ -18,7 +18,7 @@ import (
"strings"
"time"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
// Line represents a line in the container logs.

@ -7,7 +7,7 @@ package runtime
import (
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
func TestLineWriter(t *testing.T) {

@ -14,7 +14,7 @@
package runtime
import "github.com/drone/drone-runtime/engine"
import "git.awesome-for.me/liuzhiguo/drone-runtime/engine"
// Option configures a Runtime option.
type Option func(*Runtime)

@ -7,7 +7,7 @@ package runtime
import (
"testing"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
)
func TestWithHooks(t *testing.T) {

@ -20,7 +20,7 @@ import (
"sync"
"time"
"github.com/drone/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"github.com/natessilva/dag"
"golang.org/x/sync/errgroup"
)

@ -12,8 +12,8 @@ package runtime
// "io/ioutil"
// "testing"
// "github.com/drone/autoscaler/mocks"
// "github.com/drone/drone-runtime/engine"
// "git.awesome-for.me/liuzhiguo/autoscaler/mocks"
// "git.awesome-for.me/liuzhiguo/drone-runtime/engine"
// "github.com/golang/mock/gomock"
// )

@ -14,7 +14,7 @@
package runtime
import "github.com/drone/drone-runtime/engine"
import "git.awesome-for.me/liuzhiguo/drone-runtime/engine"
// State defines the pipeline and process state.
type State struct {

@ -9,7 +9,7 @@ import (
"io"
"sync"
"github.com/drone/drone-runtime/runtime"
"git.awesome-for.me/liuzhiguo/drone-runtime/runtime"
)
const (

@ -8,8 +8,8 @@ import (
"bytes"
"testing"
"github.com/drone/drone-runtime/engine"
"github.com/drone/drone-runtime/runtime"
"git.awesome-for.me/liuzhiguo/drone-runtime/engine"
"git.awesome-for.me/liuzhiguo/drone-runtime/runtime"
)
func TestWriteLine(t *testing.T) {

Loading…
Cancel
Save