1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

Renamed package

This commit is contained in:
Laszlo Fogas 2019-04-04 20:51:20 +02:00
parent 2fbaa56eee
commit ca5817ffc2
109 changed files with 245 additions and 245 deletions

View File

@ -22,7 +22,7 @@ set -x
git clone git@github.com:drone/drone-enterprise.git extras
# build a static binary with the build number and extra features.
go build -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/drone/drone/extras/cmd/drone-server
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/drone/drone/cmd/drone-agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/drone/drone/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
go build -ldflags '-extldflags "-static" -X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-server github.com/laszlocph/drone-oss-08/extras/cmd/drone-server
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm64/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 GOARM=7 go build -ldflags '-X github.com/laszlocph/drone-oss-08/version.VersionDev=build.'${DRONE_BUILD_NUMBER} -o release/linux/arm/drone-agent github.com/laszlocph/drone-oss-08/cmd/drone-agent

View File

@ -1,12 +1,12 @@
workspace:
base: /go
path: src/github.com/drone/drone
path: src/github.com/laszlocph/drone-oss-08
pipeline:
test:
image: golang:1.8
commands:
- go get -u github.com/drone/drone-ui/dist
- go get -u github.com/laszlocph/drone-ui/dist
- go get -u golang.org/x/tools/cmd/cover
- go get -u golang.org/x/net/context
- go get -u golang.org/x/net/context/ctxhttp
@ -20,7 +20,7 @@ pipeline:
- DATABASE_DRIVER=postgres
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
commands:
- go test github.com/drone/drone/store/datastore
- go test github.com/laszlocph/drone-oss-08/store/datastore
test_mysql:
image: golang:1.8
@ -28,7 +28,7 @@ pipeline:
- DATABASE_DRIVER=mysql
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
commands:
- go test github.com/drone/drone/store/datastore
- go test github.com/laszlocph/drone-oss-08/store/datastore
build:
image: golang:1.8

View File

@ -1,7 +1,7 @@
1. Install go 1.9 or later
2. Install dependencies
go get -u github.com/drone/drone-ui/dist
go get -u github.com/laszlocph/drone-ui/dist
go get -u golang.org/x/net/context
go get -u golang.org/x/net/context/ctxhttp
go get -u github.com/golang/protobuf/proto
@ -9,5 +9,5 @@
3. Install binaries to $GOPATH/bin
go install github.com/drone/drone/cmd/drone-agent
go install github.com/drone/drone/cmd/drone-server
go install github.com/laszlocph/drone-oss-08/cmd/drone-agent
go install github.com/laszlocph/drone-oss-08/cmd/drone-server

View File

@ -22,7 +22,7 @@ import (
"sync"
"time"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/version"
"github.com/urfave/cli"
)
@ -48,7 +48,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(200)
w.Header().Add("Content-Type", "text/json")
json.NewEncoder(w).Encode(versionResp{
Source: "https://github.com/drone/drone",
Source: "https://github.com/laszlocph/drone-oss-08",
Version: version.Version.String(),
})
}

View File

@ -19,7 +19,7 @@ import (
"os"
"time"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/version"
_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli"

View File

@ -18,7 +18,7 @@ import (
"fmt"
"os"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/version"
_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli"

View File

@ -36,12 +36,12 @@ import (
"github.com/cncd/logging"
"github.com/cncd/pipeline/pipeline/rpc/proto"
"github.com/cncd/pubsub"
"github.com/drone/drone/plugins/sender"
"github.com/drone/drone/remote"
"github.com/drone/drone/router"
"github.com/drone/drone/router/middleware"
droneserver "github.com/drone/drone/server"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/plugins/sender"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/router"
"github.com/laszlocph/drone-oss-08/router/middleware"
droneserver "github.com/laszlocph/drone-oss-08/server"
"github.com/laszlocph/drone-oss-08/store"
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/contrib/ginrus"

View File

@ -20,21 +20,21 @@ import (
"github.com/cncd/queue"
"github.com/dimfeld/httptreemux"
"github.com/drone/drone/model"
"github.com/drone/drone/plugins/registry"
"github.com/drone/drone/plugins/secrets"
"github.com/drone/drone/remote"
"github.com/drone/drone/remote/bitbucket"
"github.com/drone/drone/remote/bitbucketserver"
"github.com/drone/drone/remote/coding"
"github.com/drone/drone/remote/gitea"
"github.com/drone/drone/remote/github"
"github.com/drone/drone/remote/gitlab"
"github.com/drone/drone/remote/gitlab3"
"github.com/drone/drone/remote/gogs"
"github.com/drone/drone/server/web"
"github.com/drone/drone/store"
"github.com/drone/drone/store/datastore"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/plugins/registry"
"github.com/laszlocph/drone-oss-08/plugins/secrets"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/remote/bitbucket"
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver"
"github.com/laszlocph/drone-oss-08/remote/coding"
"github.com/laszlocph/drone-oss-08/remote/gitea"
"github.com/laszlocph/drone-oss-08/remote/github"
"github.com/laszlocph/drone-oss-08/remote/gitlab"
"github.com/laszlocph/drone-oss-08/remote/gitlab3"
"github.com/laszlocph/drone-oss-08/remote/gogs"
"github.com/laszlocph/drone-oss-08/server/web"
"github.com/laszlocph/drone-oss-08/store"
"github.com/laszlocph/drone-oss-08/store/datastore"
"github.com/urfave/cli"
)

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
type builtin struct {

View File

@ -1,7 +1,7 @@
package secrets
import (
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
type builtin struct {

View File

@ -1,7 +1,7 @@
package sender
import (
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
type builtin struct {

View File

@ -3,8 +3,8 @@ package sender
import (
"fmt"
"github.com/drone/drone/model"
"github.com/drone/drone/plugins/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/plugins/internal"
)
type plugin struct {

View File

@ -19,10 +19,10 @@ import (
"net/http"
"net/url"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/remote/bitbucket/internal"
"github.com/drone/drone/shared/httputil"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"golang.org/x/oauth2"
)

View File

@ -20,9 +20,9 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucket/fixtures"
"github.com/drone/drone/remote/bitbucket/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/fixtures"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -20,8 +20,8 @@ import (
"regexp"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucket/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
"golang.org/x/oauth2"
)

View File

@ -18,8 +18,8 @@ import (
"testing"
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucket/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
"github.com/franela/goblin"
"golang.org/x/oauth2"

View File

@ -19,8 +19,8 @@ import (
"io/ioutil"
"net/http"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucket/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/internal"
)
const (

View File

@ -19,7 +19,7 @@ import (
"net/http"
"testing"
"github.com/drone/drone/remote/bitbucket/fixtures"
"github.com/laszlocph/drone-oss-08/remote/bitbucket/fixtures"
"github.com/franela/goblin"
)

View File

@ -28,9 +28,9 @@ import (
"net/url"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/remote/bitbucketserver/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
"github.com/mrjones/oauth"
)

View File

@ -22,8 +22,8 @@ import (
"strings"
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucketserver/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
"github.com/mrjones/oauth"
)

View File

@ -17,8 +17,8 @@ package bitbucketserver
import (
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucketserver/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
"github.com/franela/goblin"
"github.com/mrjones/oauth"
)

View File

@ -26,7 +26,7 @@ import (
"strings"
log "github.com/Sirupsen/logrus"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/mrjones/oauth"
)

View File

@ -17,8 +17,8 @@ package bitbucketserver
import (
"encoding/json"
"fmt"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/bitbucketserver/internal"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/bitbucketserver/internal"
"net/http"
)

View File

@ -20,10 +20,10 @@ import (
"net/http"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/remote/coding/internal"
"github.com/drone/drone/shared/httputil"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/remote/coding/internal"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"golang.org/x/net/context"
"golang.org/x/oauth2"

View File

@ -20,8 +20,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/coding/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/coding/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -22,7 +22,7 @@ import (
"regexp"
"strings"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
const (

View File

@ -20,8 +20,8 @@ import (
"strings"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/coding/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/coding/fixtures"
"github.com/franela/goblin"
)

View File

@ -20,8 +20,8 @@ import (
"net/http"
"net/url"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
)
// IMPORTANT Gerrit support is not yet implemented. This file is a placeholder

View File

@ -22,8 +22,8 @@ import (
"net/url"
"code.gitea.io/sdk/gitea"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
)
// Opts defines configuration options.

View File

@ -18,8 +18,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gitea/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gitea/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"
)

View File

@ -23,7 +23,7 @@ import (
"time"
"code.gitea.io/sdk/gitea"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
// helper function that converts a Gitea repository to a Drone repository.

View File

@ -19,8 +19,8 @@ import (
"testing"
"code.gitea.io/sdk/gitea"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gitea/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gitea/fixtures"
"github.com/franela/goblin"
)

View File

@ -18,7 +18,7 @@ import (
"io"
"net/http"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
const (

View File

@ -18,7 +18,7 @@ import (
"fmt"
"strings"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/google/go-github/github"
)

View File

@ -17,7 +17,7 @@ package github
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/google/go-github/github"
"github.com/franela/goblin"

View File

@ -24,9 +24,9 @@ import (
"strconv"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/google/go-github/github"
"golang.org/x/net/context"

View File

@ -18,8 +18,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/github/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/github/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -21,7 +21,7 @@ import (
"io/ioutil"
"net/http"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
const (

View File

@ -19,8 +19,8 @@ import (
"net/http"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/github/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/github/fixtures"
"github.com/franela/goblin"
)

View File

@ -24,12 +24,12 @@ import (
"strconv"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/shared/oauth2"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/shared/oauth2"
"github.com/drone/drone/remote/gitlab/client"
"github.com/laszlocph/drone-oss-08/remote/gitlab/client"
)
const DefaultScope = "api"

View File

@ -19,8 +19,8 @@ import (
"net/http"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gitlab/testdata"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gitlab/testdata"
"github.com/franela/goblin"
)

View File

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/drone/drone/remote/gitlab/client"
"github.com/laszlocph/drone-oss-08/remote/gitlab/client"
)
const (

View File

@ -24,12 +24,12 @@ import (
"strconv"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/shared/oauth2"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/shared/oauth2"
"github.com/drone/drone/remote/gitlab3/client"
"github.com/laszlocph/drone-oss-08/remote/gitlab3/client"
)
const DefaultScope = "api"

View File

@ -19,8 +19,8 @@ import (
"net/http"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gitlab3/testdata"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gitlab3/testdata"
"github.com/franela/goblin"
)

View File

@ -22,7 +22,7 @@ import (
"strconv"
"strings"
"github.com/drone/drone/remote/gitlab3/client"
"github.com/laszlocph/drone-oss-08/remote/gitlab3/client"
)
const (

View File

@ -22,8 +22,8 @@ import (
"net/url"
"strings"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/gogits/go-gogs-client"
)

View File

@ -18,8 +18,8 @@ import (
"net/http/httptest"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gogs/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gogs/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"

View File

@ -22,7 +22,7 @@ import (
"strings"
"time"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/gogits/go-gogs-client"
)

View File

@ -18,8 +18,8 @@ import (
"bytes"
"testing"
"github.com/drone/drone/model"
"github.com/drone/drone/remote/gogs/fixtures"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote/gogs/fixtures"
"github.com/franela/goblin"
"github.com/gogits/go-gogs-client"

View File

@ -18,7 +18,7 @@ import (
"io"
"net/http"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
const (

View File

@ -17,7 +17,7 @@ package mock
import (
"net/http"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/stretchr/testify/mock"
)

View File

@ -20,7 +20,7 @@ import (
"net/http"
"time"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"golang.org/x/net/context"
)

View File

@ -15,7 +15,7 @@
package middleware
import (
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/gin-gonic/gin"
"github.com/urfave/cli"

View File

@ -18,7 +18,7 @@ import (
"net/http"
"time"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/version"
"github.com/gin-gonic/gin"
)

View File

@ -15,7 +15,7 @@
package middleware
import (
"github.com/drone/drone/remote"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/gin-gonic/gin"
)

View File

@ -15,7 +15,7 @@
package session
import (
"github.com/drone/drone/shared/token"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/gin-gonic/gin"
)

View File

@ -18,9 +18,9 @@ import (
"net/http"
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/store"
log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"

View File

@ -17,9 +17,9 @@ package session
import (
"net/http"
"github.com/drone/drone/model"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/store"
"github.com/gin-gonic/gin"
)

View File

@ -15,7 +15,7 @@
package middleware
import (
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/store"
"github.com/urfave/cli"
"github.com/gin-gonic/gin"

View File

@ -17,9 +17,9 @@ package token
import (
"time"
"github.com/drone/drone/remote"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/store"
log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"

View File

@ -15,7 +15,7 @@
package middleware
import (
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/version"
"github.com/gin-gonic/gin"
)

View File

@ -20,13 +20,13 @@ import (
"github.com/dimfeld/httptreemux"
"github.com/gin-gonic/gin"
"github.com/drone/drone/router/middleware/header"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/router/middleware/token"
"github.com/drone/drone/server"
"github.com/drone/drone/server/debug"
"github.com/drone/drone/server/metrics"
"github.com/drone/drone/server/web"
"github.com/laszlocph/drone-oss-08/router/middleware/header"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/router/middleware/token"
"github.com/laszlocph/drone-oss-08/server"
"github.com/laszlocph/drone-oss-08/server/debug"
"github.com/laszlocph/drone-oss-08/server/metrics"
"github.com/laszlocph/drone-oss-08/server/web"
)
// Load loads the router

View File

@ -20,9 +20,9 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"
"github.com/drone/drone/model"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/store"
)
var (

View File

@ -28,13 +28,13 @@ import (
"github.com/cncd/pipeline/pipeline/rpc"
"github.com/cncd/pubsub"
"github.com/cncd/queue"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/store"
"github.com/gin-gonic/gin"
"github.com/drone/drone/model"
"github.com/drone/drone/router/middleware/session"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
)
func GetBuilds(c *gin.Context) {

View File

@ -20,8 +20,8 @@ import (
"strconv"
"strings"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/store"
"github.com/gin-gonic/gin"
)

View File

@ -29,11 +29,11 @@ import (
"github.com/gin-gonic/gin"
"github.com/Sirupsen/logrus"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/store"
"github.com/drone/envsubst"
"github.com/cncd/pipeline/pipeline/backend"

View File

@ -17,7 +17,7 @@ package server
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestMultilineEnvsubst(t *testing.T) {

View File

@ -19,11 +19,11 @@ import (
"net/http"
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/store"
"github.com/gorilla/securecookie"
"github.com/Sirupsen/logrus"

View File

@ -18,7 +18,7 @@ import (
"errors"
"fmt"
"github.com/drone/drone/server"
"github.com/laszlocph/drone-oss-08/server"
"github.com/gin-gonic/gin"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

View File

@ -17,8 +17,8 @@ package server
import (
"net/http"
"github.com/drone/drone/model"
"github.com/drone/drone/router/middleware/session"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/gin-gonic/gin"
)

View File

@ -23,12 +23,12 @@ import (
"github.com/gin-gonic/gin"
"github.com/gorilla/securecookie"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/shared/httputil"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/shared/httputil"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/store"
)
func PostRepo(c *gin.Context) {

View File

@ -34,9 +34,9 @@ import (
"github.com/cncd/pubsub"
"github.com/cncd/queue"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/store"
"github.com/drone/expr"
)

View File

@ -17,8 +17,8 @@ package server
import (
"net/http"
"github.com/drone/drone/model"
"github.com/drone/drone/router/middleware/session"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/gin-gonic/gin"
)

View File

@ -24,9 +24,9 @@ import (
"github.com/cncd/logging"
"github.com/cncd/pubsub"
"github.com/drone/drone/model"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/store"
"github.com/Sirupsen/logrus"
"github.com/gin-gonic/gin"

View File

@ -17,7 +17,7 @@ package swagger
import (
"net/http"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
// swagger:route GET /users/{login} user getUser

View File

@ -17,9 +17,9 @@ package server
import (
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/store"
)
// Syncer synces the user repository and permissions.

View File

@ -24,11 +24,11 @@ import (
"github.com/gin-gonic/gin"
"github.com/gorilla/securecookie"
"github.com/drone/drone/model"
"github.com/drone/drone/remote"
"github.com/drone/drone/router/middleware/session"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/remote"
"github.com/laszlocph/drone-oss-08/router/middleware/session"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/store"
)
func GetSelf(c *gin.Context) {

View File

@ -21,8 +21,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/gorilla/securecookie"
"github.com/drone/drone/model"
"github.com/drone/drone/store"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store"
)
func GetUsers(c *gin.Context) {

View File

@ -24,10 +24,10 @@ import (
"path/filepath"
"time"
"github.com/drone/drone-ui/dist"
"github.com/drone/drone/model"
"github.com/drone/drone/shared/token"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-ui/dist"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/shared/token"
"github.com/laszlocph/drone-oss-08/version"
"github.com/dimfeld/httptreemux"
)

View File

@ -15,8 +15,8 @@
package server
import (
"github.com/drone/drone/store"
"github.com/drone/drone/version"
"github.com/laszlocph/drone-oss-08/store"
"github.com/laszlocph/drone-oss-08/version"
"github.com/gin-gonic/gin"
)
@ -32,7 +32,7 @@ func Health(c *gin.Context) {
// Version endpoint returns the server version and build information.
func Version(c *gin.Context) {
c.JSON(200, gin.H{
"source": "https://github.com/drone/drone",
"source": "https://github.com/laszlocph/drone-oss-08",
"version": version.Version.String(),
})
}

View File

@ -18,8 +18,8 @@ import (
"fmt"
"time"
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -18,7 +18,7 @@ import (
"fmt"
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/franela/goblin"
)

View File

@ -17,8 +17,8 @@ package datastore
import (
gosql "database/sql"
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestConfig(t *testing.T) {

View File

@ -18,9 +18,9 @@ import (
"database/sql"
"errors"
"github.com/drone/drone/store/datastore/ddl/mysql"
"github.com/drone/drone/store/datastore/ddl/postgres"
"github.com/drone/drone/store/datastore/ddl/sqlite"
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/mysql"
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/postgres"
"github.com/laszlocph/drone-oss-08/store/datastore/ddl/sqlite"
)
// Supported database drivers

View File

@ -19,8 +19,8 @@ import (
"io"
"io/ioutil"
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -19,7 +19,7 @@ import (
"io/ioutil"
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestFileFind(t *testing.T) {

View File

@ -19,8 +19,8 @@ import (
"io"
"io/ioutil"
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -19,7 +19,7 @@ import (
"io/ioutil"
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestLogCreateFind(t *testing.T) {

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestPermFind(t *testing.T) {

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestProcFind(t *testing.T) {

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestRegistryFind(t *testing.T) {

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
"github.com/franela/goblin"
)

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

View File

@ -17,7 +17,7 @@ package datastore
import (
"testing"
"github.com/drone/drone/model"
"github.com/laszlocph/drone-oss-08/model"
)
func TestSecretFind(t *testing.T) {

View File

@ -15,8 +15,8 @@
package datastore
import (
"github.com/drone/drone/model"
"github.com/drone/drone/store/datastore/sql"
"github.com/laszlocph/drone-oss-08/model"
"github.com/laszlocph/drone-oss-08/store/datastore/sql"
"github.com/russross/meddler"
)

Some files were not shown because too many files have changed in this diff Show More