更改包名

master
liuzhiguo 6 months ago
parent d12a95813c
commit 42322cb76a

@ -1,156 +0,0 @@
# Changelog
## [v1.12.0](https://github.com/drone/runner-go/tree/v1.12.0) (2021-11-30)
[Full Changelog](https://github.com/drone/runner-go/compare/v1.11.0...v1.12.0)
**Implemented enhancements:**
- Add `retries` option to clone manifest [\#22](https://github.com/drone/runner-go/pull/22) ([julienduchesne](https://github.com/julienduchesne))
## [v1.11.0](https://github.com/drone/runner-go/tree/v1.11.0) (2021-11-11)
[Full Changelog](https://github.com/drone/runner-go/compare/v1.10.0...v1.11.0)
**Implemented enhancements:**
- create card path env variable [\#19](https://github.com/drone/runner-go/pull/19) ([eoinmcafee00](https://github.com/eoinmcafee00))
**Merged pull requests:**
- Release/1.11.0 [\#21](https://github.com/drone/runner-go/pull/21) ([eoinmcafee00](https://github.com/eoinmcafee00))
## [v1.10.0](https://github.com/drone/runner-go/tree/v1.10.0) (2021-11-10)
[Full Changelog](https://github.com/drone/runner-go/compare/v1.9.0...v1.10.0)
**Implemented enhancements:**
- read & upload card data to drone server [\#16](https://github.com/drone/runner-go/pull/16) ([eoinmcafee00](https://github.com/eoinmcafee00))
**Merged pull requests:**
- Release/1.10.0 [\#18](https://github.com/drone/runner-go/pull/18) ([eoinmcafee00](https://github.com/eoinmcafee00))
- feat\(proxy\): support for all\_proxy variables [\#15](https://github.com/drone/runner-go/pull/15) ([ysicing](https://github.com/ysicing))
## [v1.9.0](https://github.com/drone/runner-go/tree/v1.9.0) (2021-08-26)
[Full Changelog](https://github.com/drone/runner-go/compare/v1.8.0...v1.9.0)
**Implemented enhancements:**
- \(feat\) add silent version of bash and powershell Script [\#13](https://github.com/drone/runner-go/pull/13) ([tphoney](https://github.com/tphoney))
**Merged pull requests:**
- \(maint\) v1.9.0 release prep [\#14](https://github.com/drone/runner-go/pull/14) ([tphoney](https://github.com/tphoney))
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.8.0] - 2021-06-24
### Fixed
- graceful shutdown of http servers
- url escape of 'machine' parameter
### Added
- environment variable for build trigger
- environment variable for pull request title
## [1.7.0] - 2021-03-01
### Fixed
- panic when registry uri parsing errors
- do not mask single-character secrets
- capture stage duration on failure
- capture dag errors
- capture oom kill and exit code
- cancel step on semaphore deadline exceeded
### Added
- support for running a single pipeline on-demand
- support for interpolating global environment variables
- function for creating netrc environment variables
- support for debug mode
- adding depends_on, image and detached fields to step
### Updated
- upgrade drone-go dependency version
## [1.6.0] - 2020-03-24
### Added
- support for username/password in docker config.json
- support for multiple external environment providers
- support for calendar version environment variables
- drain response body to ensure connection re-use
## [1.5.1] - 2019-12-10
### Fixed
- not trimming pipeline history causing memory leak
## [1.5.0] - 2019-12-09
### Added
- support for global environment variables
- support for external environment variables from an external service
- abstraction for pipeline execution
## [1.4.0] - 2019-11-05
### Added
- function to encode registry credentials in docker config.json format
## [1.3.1] - 2019-11-01
### Fixed
- check if last exit code greater than 0 in powershell
## [1.3.0] - 2019-10-31
### Fixed
- text overflow for long commit messages
- error in step should bubble up to stage
### Added
- support for legacy CI_ environment variables
- support for registry plugins
- support for concurrency limits in yaml
- support for nodes in yaml
- helpers for working with docker auth config files
- helpers for tagging containers with labels
## [1.2.2] - 2019-09-28
### Fixed
- powershell scripts should check last exit code
### Added
- support for cron events in the dashboard screen
- support for promote events in the dashboard screen
- support for rollback events in the dashboard screen
## [1.2.1] - 2019-07-27
### Fixed
- close and already closed channel in livelog causes panic
## [1.2.0] - 2019-07-27
### Added
- semver environment variables
## [1.1.0] - 2019-07-14
### Added
- logrus hook to store recent system logs
- handler to visualize recent system logs
- handler to visualize pipeline steps
- disable dashbaord if no password set
## [1.0.0] - 2019-07-01
### Added
- defined runner manifest schema
- defined runner remote protocol
- helpers for generating environment variables
- helpers for generating clone scripts
- helpers for generating shell scripts
- support for encrypted secrets
- support for static secrets
- support for remote secrets
- support for buffered log streaming
- handler to provide healtcheck support
- handler to provide runner dashboard
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

@ -9,7 +9,7 @@ import (
"context"
"errors"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// V1 is version 1 of the runner API

@ -17,8 +17,8 @@ import (
"net/url"
"time"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/logger"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
)
const (

@ -9,7 +9,7 @@ import (
"runtime/debug"
"sync"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
var _ Client = (*SingleFlight)(nil)

@ -9,7 +9,7 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
var noContext = context.Background()

@ -13,7 +13,7 @@ import (
"strings"
"time"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// regular expression to extract the pull request number

@ -7,7 +7,7 @@ package environ
import (
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"github.com/google/go-cmp/cmp"
)

@ -8,8 +8,8 @@ import (
"context"
"time"
"github.com/drone/drone-go/plugin/environ"
"github.com/drone/runner-go/logger"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/environ"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
)
// MultiExternal returns a new environment provider that

@ -9,8 +9,8 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/drone-go/plugin/environ"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/environ"
"github.com/google/go-cmp/cmp"
)

@ -9,7 +9,7 @@ package provider
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Request provides arguments for requesting a environment

@ -1,19 +1,21 @@
module github.com/drone/runner-go
module git.awesome-for.me/liuzhiguo/runner-go
go 1.12
require (
git.awesome-for.me/liuzhiguo/drone-go v1.7.2
git.awesome-for.me/liuzhiguo/envsubst v1.0.5
github.com/99designs/basicauth-go v0.0.0-20160802081356-2a93ba0f464d
github.com/bmatcuk/doublestar v1.1.1
github.com/buildkite/yaml v2.1.0+incompatible
github.com/coreos/go-semver v0.3.0
github.com/docker/go-units v0.4.0
github.com/drone/drone-go v1.7.1
github.com/drone/envsubst v1.0.2
github.com/google/go-cmp v0.3.0
github.com/google/go-cmp v0.6.0
github.com/hashicorp/go-multierror v1.0.0
github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4
github.com/sirupsen/logrus v1.4.2
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4
golang.org/x/sync v0.0.0-20190423024810-112230192c58
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

@ -1,3 +1,9 @@
git.awesome-for.me/liuzhiguo/drone-go v1.7.2 h1:2M1s+K3g0STdBKcShHutjKo7PcsAuq1Y69o7kGb+i38=
git.awesome-for.me/liuzhiguo/drone-go v1.7.2/go.mod h1:hWG3cjzzHjMoxFs7GR0DzqKER2cUCRW4ClHdcs/SHeM=
git.awesome-for.me/liuzhiguo/envsubst v1.0.2 h1:dpYLMAspQHW0a8dZpLRKe9jCNvIGZPhCPrycZzIHdqo=
git.awesome-for.me/liuzhiguo/envsubst v1.0.2/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0=
git.awesome-for.me/liuzhiguo/envsubst v1.0.5 h1:O9RyUIdJprhYN5Cv8fTly1Vadw8n/KwpQHqMlkysKO0=
git.awesome-for.me/liuzhiguo/envsubst v1.0.5/go.mod h1:9aadwL+AkNoGnaI2g8YFPTVHJO8FYhDYv4yMYpkNcHs=
github.com/99designs/basicauth-go v0.0.0-20160802081356-2a93ba0f464d h1:j6oB/WPCigdOkxtuPl1VSIiLpy7Mdsu6phQffbF19Ng=
github.com/99designs/basicauth-go v0.0.0-20160802081356-2a93ba0f464d/go.mod h1:3cARGAK9CfW3HoxCy1a0G4TKrdiKke8ftOMEOHyySYs=
github.com/99designs/httpsignatures-go v0.0.0-20170731043157-88528bf4ca7e h1:rl2Aq4ZODqTDkeSqQBy+fzpZPamacO1Srp8zq7jf2Sc=
@ -8,40 +14,33 @@ github.com/buildkite/yaml v2.1.0+incompatible h1:xirI+ql5GzfikVNDmt+yeiXpf/v1Gt0
github.com/buildkite/yaml v2.1.0+incompatible/go.mod h1:UoU8vbcwu1+vjZq01+KrpSeLBgQQIjL/H7Y6KwikUrI=
github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM=
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/drone/drone-go v1.1.1-0.20191119212130-1d2e07e87e79 h1:jW+dJ8HrZ1CbazlsYoriOOCQnVJ2NkfNczLHs6UMU6I=
github.com/drone/drone-go v1.1.1-0.20191119212130-1d2e07e87e79/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4=
github.com/drone/drone-go v1.2.1-0.20200326061744-0158580ce4ea h1:bMFm53oPjGvjpdO7+mfK6Qak4+O5ri5UlmlvN6J/qvo=
github.com/drone/drone-go v1.2.1-0.20200326061744-0158580ce4ea/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4=
github.com/drone/drone-go v1.2.1-0.20200326064413-195394da1018 h1:aHRv4GohqzHXZEGks/Qyrd8kI7hkCdLhJO1QoYtQMjU=
github.com/drone/drone-go v1.2.1-0.20200326064413-195394da1018/go.mod h1:GxyeGClYohaKNYJv/ZpsmVHtMJ7WhoT+uDaJNcDIrk4=
github.com/drone/drone-go v1.3.1 h1:D4KXbauJtbT/zXk19TcMpu36F8GPOUcndIw7pOWsX6k=
github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27 h1:58xKlW/Kwp/Apz+R5qNGzBUIzfq1Z57L7Udz1B6bgWE=
github.com/drone/drone-go v1.4.1-0.20201109202657-b9e58bbbcf27/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/drone-go v1.5.0 h1:4rM74O3Xd6SnkdRIidlwwhVAPs4dXvcdVCgGvkrqL1M=
github.com/drone/drone-go v1.5.0/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/drone-go v1.6.0/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/drone-go v1.7.1 h1:ZX+3Rs8YHUSUQ5mkuMLmm1zr1ttiiE2YGNxF3AnyDKw=
github.com/drone/drone-go v1.7.1/go.mod h1:fxCf9jAnXDZV1yDr0ckTuWd1intvcQwfJmTRpTZ1mXg=
github.com/drone/envsubst v1.0.2 h1:dpYLMAspQHW0a8dZpLRKe9jCNvIGZPhCPrycZzIHdqo=
github.com/drone/envsubst v1.0.2/go.mod h1:bkZbnc/2vh1M12Ecn7EYScpI4YGYU0etwLJICOWi8Z0=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4 h1:dnMxwus89s86tI8rcGVp2HwZzlz7c5o92VOy7dSckBQ=
github.com/natessilva/dag v0.0.0-20180124060714-7194b8dcc5c4/go.mod h1:cojhOHk1gbMeklOyDP2oKKLftefXoJreOQGOrXk+Z38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4 h1:ydJNl0ENAG67pFbB+9tfhiL2pYqLhfoaZFw/cjLhY4A=
@ -56,3 +55,8 @@ golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/p
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=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

@ -11,9 +11,9 @@ import (
"sort"
"strconv"
"github.com/drone/drone-go/drone"
hook "github.com/drone/runner-go/logger/history"
"github.com/drone/runner-go/pipeline/reporter/history"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
hook "git.awesome-for.me/liuzhiguo/runner-go/logger/history"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline/reporter/history"
)
// HandleHealth returns a http.HandlerFunc that returns a 200

@ -8,7 +8,7 @@ import (
"encoding/json"
"net/http"
"github.com/drone/runner-go/handler/template"
"git.awesome-for.me/liuzhiguo/runner-go/handler/template"
)
// renderJSON writes the json-encoded representation of v to

@ -7,10 +7,10 @@ package router
import (
"net/http"
"github.com/drone/runner-go/handler"
"github.com/drone/runner-go/handler/static"
hook "github.com/drone/runner-go/logger/history"
"github.com/drone/runner-go/pipeline/reporter/history"
"git.awesome-for.me/liuzhiguo/runner-go/handler"
"git.awesome-for.me/liuzhiguo/runner-go/handler/static"
hook "git.awesome-for.me/liuzhiguo/runner-go/logger/history"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline/reporter/history"
"github.com/99designs/basicauth-go"
)

@ -4,7 +4,7 @@
package internal
import "github.com/drone/drone-go/drone"
import "git.awesome-for.me/liuzhiguo/drone-go/drone"
// CloneRepo returns a copy of the Repository.
func CloneRepo(src *drone.Repo) *drone.Repo {

@ -7,7 +7,7 @@ package internal
import (
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"github.com/google/go-cmp/cmp"
)

@ -4,7 +4,7 @@
package internal
import "github.com/drone/drone-go/drone"
import "git.awesome-for.me/liuzhiguo/drone-go/drone"
// MergeStage merges the source stage with the destination.
func MergeStage(src, dst *drone.Stage) {

@ -7,7 +7,7 @@ package internal
import (
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"github.com/google/go-cmp/cmp"
)

@ -8,7 +8,7 @@ import (
"fmt"
"time"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// now returns the current time.

@ -12,8 +12,8 @@ import (
"sync"
"time"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/client"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/client"
)
// defaultLimit is the default maximum log size in bytes.

@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/client"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"github.com/google/go-cmp/cmp"
)

@ -7,7 +7,7 @@ package history
import (
"time"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Entry represents a history entry.

@ -8,7 +8,7 @@ import (
"sort"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"github.com/google/go-cmp/cmp"
)

@ -11,8 +11,8 @@ import (
"sync"
"time"
"github.com/drone/runner-go/internal"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/runner-go/internal"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
)
var _ pipeline.Reporter = (*History)(nil)

@ -8,8 +8,8 @@ import (
"context"
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
"github.com/google/go-cmp/cmp"
)

@ -10,10 +10,10 @@ import (
"context"
"io"
"github.com/drone/runner-go/client"
"github.com/drone/runner-go/internal"
"github.com/drone/runner-go/livelog"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"git.awesome-for.me/liuzhiguo/runner-go/internal"
"git.awesome-for.me/liuzhiguo/runner-go/livelog"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
)
var _ pipeline.Reporter = (*Remote)(nil)

@ -8,10 +8,10 @@ import (
"context"
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/client"
"github.com/drone/runner-go/livelog"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"git.awesome-for.me/liuzhiguo/runner-go/livelog"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
"github.com/google/go-cmp/cmp"
)

@ -8,11 +8,11 @@ import (
"context"
"sync"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/environ"
"github.com/drone/runner-go/livelog/extractor"
"github.com/drone/runner-go/logger"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/environ"
"git.awesome-for.me/liuzhiguo/runner-go/livelog/extractor"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
"github.com/hashicorp/go-multierror"
"github.com/natessilva/dag"

@ -11,15 +11,15 @@ import (
"strings"
"time"
"github.com/drone/runner-go/client"
"github.com/drone/runner-go/environ"
"github.com/drone/runner-go/logger"
"github.com/drone/runner-go/manifest"
"github.com/drone/runner-go/pipeline"
"github.com/drone/runner-go/secret"
"github.com/drone/drone-go/drone"
"github.com/drone/envsubst"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"git.awesome-for.me/liuzhiguo/runner-go/environ"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/runner-go/secret"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/envsubst"
)
var noContext = context.Background()

@ -8,9 +8,9 @@ import (
"context"
"io"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/manifest"
"github.com/drone/runner-go/secret"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/runner-go/secret"
)
type (

@ -8,7 +8,7 @@ import (
"sync"
"time"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// State stores the pipeline state.

@ -8,7 +8,7 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
func TestStateKill(t *testing.T) {

@ -11,7 +11,7 @@ import (
"io"
"os"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
)
var _ pipeline.Streamer = (*Console)(nil)

@ -4,10 +4,10 @@ import (
"context"
"encoding/json"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/client"
"github.com/drone/runner-go/internal"
"github.com/drone/runner-go/pipeline"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"git.awesome-for.me/liuzhiguo/runner-go/internal"
"git.awesome-for.me/liuzhiguo/runner-go/pipeline"
)
var _ pipeline.Uploader = (*Upload)(nil)

@ -8,9 +8,9 @@ import (
"context"
"sync"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/client"
"github.com/drone/runner-go/logger"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/client"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
)
var noContext = context.Background()

@ -13,7 +13,7 @@ import (
"os"
"strings"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
type (

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

@ -8,7 +8,7 @@ import (
"bytes"
"encoding/json"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Encode encodes the registry credentials to using the

@ -8,7 +8,7 @@ import (
"strings"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
func TestEncode(t *testing.T) {

@ -7,7 +7,7 @@ package registry
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Combine returns a new combined registry provider, capable of

@ -8,7 +8,7 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
func TestCombine(t *testing.T) {

@ -8,9 +8,9 @@ import (
"context"
"time"
"github.com/drone/drone-go/drone"
"github.com/drone/drone-go/plugin/registry"
"github.com/drone/runner-go/logger"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/registry"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
)
// External returns a new external registry credentials

@ -9,8 +9,8 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/drone-go/plugin/registry"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/registry"
"github.com/google/go-cmp/cmp"
)

@ -7,9 +7,9 @@ package registry
import (
"context"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/logger"
"github.com/drone/runner-go/registry/auths"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/registry/auths"
)
// File returns a new registry credential provider that

@ -7,7 +7,7 @@ package registry
import (
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"github.com/google/go-cmp/cmp"
)

@ -9,7 +9,7 @@ package registry
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Request provides arguments for requesting a secret from

@ -7,7 +7,7 @@ package registry
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
var noContext = context.Background()

@ -7,7 +7,7 @@ package registry
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Static returns a new static registry credential provider.

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

@ -7,7 +7,7 @@ package secret
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Combine returns a new combined secret provider, capable of

@ -8,7 +8,7 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
func TestCombine(t *testing.T) {

@ -11,10 +11,10 @@ import (
"encoding/base64"
"errors"
"github.com/drone/runner-go/logger"
"github.com/drone/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Encrypted returns a new encrypted secret provider. The

@ -7,8 +7,8 @@ package secret
import (
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
)
func TestEncrypted(t *testing.T) {

@ -8,11 +8,11 @@ import (
"context"
"time"
"github.com/drone/runner-go/logger"
"github.com/drone/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
"github.com/drone/drone-go/drone"
"github.com/drone/drone-go/plugin/secret"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/secret"
)
// External returns a new external secret provider. The

@ -9,9 +9,9 @@ import (
"errors"
"testing"
"github.com/drone/drone-go/drone"
"github.com/drone/drone-go/plugin/secret"
"github.com/drone/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/plugin/secret"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
)
func TestExternal(t *testing.T) {

@ -8,8 +8,8 @@ package secret
import (
"context"
"github.com/drone/drone-go/drone"
"github.com/drone/runner-go/manifest"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
"git.awesome-for.me/liuzhiguo/runner-go/manifest"
)
// Request provides arguments for requesting a secret from

@ -7,7 +7,7 @@ package secret
import (
"context"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
type mockProvider struct {

@ -8,9 +8,9 @@ import (
"context"
"strings"
"github.com/drone/runner-go/logger"
"git.awesome-for.me/liuzhiguo/runner-go/logger"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
// Static returns a new static secret provider. The static

@ -8,7 +8,7 @@ import (
"context"
"testing"
"github.com/drone/drone-go/drone"
"git.awesome-for.me/liuzhiguo/drone-go/drone"
)
var noContext = context.Background()

@ -2,11 +2,12 @@
// Use of this source code is governed by the Polyform License
// that can be found in the LICENSE file.
//go:build !windows
// +build !windows
package shell
import "github.com/drone/runner-go/shell/bash"
import "git.awesome-for.me/liuzhiguo/runner-go/shell/bash"
// Suffix provides the shell script suffix.
const Suffix = ""

@ -2,11 +2,12 @@
// Use of this source code is governed by the Polyform License
// that can be found in the LICENSE file.
//go:build windows
// +build windows
package shell
import "github.com/drone/runner-go/shell/powershell"
import "git.awesome-for.me/liuzhiguo/runner-go/shell/powershell"
// Suffix provides the shell script suffix.
const Suffix = ".ps1"

Loading…
Cancel
Save