Switch to go vanity urls (#2706)

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
6543 2023-11-07 08:04:33 +01:00 committed by GitHub
parent 9648765ae5
commit 5a7b689e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
293 changed files with 755 additions and 754 deletions

View file

@ -24,7 +24,7 @@ tasks:
|| echo WOODPECKER_DEV_OAUTH_HOST=$(gp url 8000) >> .env
gp sync-await gitea
gp sync-done woodpecker-server
go run github.com/woodpecker-ci/woodpecker/cmd/server
go run go.woodpecker-ci.org/woodpecker/cmd/server
- name: Agent
env:
WOODPECKER_SERVER: localhost:9000
@ -33,7 +33,7 @@ tasks:
WOODPECKER_HEALTHCHECK: false
command: |
gp sync-await woodpecker-server
go run github.com/woodpecker-ci/woodpecker/cmd/agent
go run go.woodpecker-ci.org/woodpecker/cmd/agent
- name: Gitea
command: |
export DOCKER_COMPOSE_CMD="docker-compose -f docker-compose.gitpod.yml -p woodpecker"

View file

@ -32,7 +32,7 @@ steps:
lint-pipeline:
image: *golang_image
commands:
- go run github.com/woodpecker-ci/woodpecker/cmd/cli lint
- go run go.woodpecker-ci.org/woodpecker/cmd/cli lint
when:
- <<: *when
- path:

View file

@ -27,7 +27,7 @@ else
endif
endif
LDFLAGS := -s -w -extldflags "-static" -X github.com/woodpecker-ci/woodpecker/version.Version=${VERSION}
LDFLAGS := -s -w -extldflags "-static" -X go.woodpecker-ci.org/woodpecker/version.Version=${VERSION}
CGO_ENABLED ?= 1 # only used to compile server
HAS_GO = $(shell hash go > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
@ -144,20 +144,20 @@ lint-ui: ## Lint UI code
(cd web/; pnpm lint --quiet)
test-agent: ## Test agent code
go test -race -cover -coverprofile agent-coverage.out -timeout 30s github.com/woodpecker-ci/woodpecker/cmd/agent github.com/woodpecker-ci/woodpecker/agent/...
go test -race -cover -coverprofile agent-coverage.out -timeout 30s go.woodpecker-ci.org/woodpecker/cmd/agent go.woodpecker-ci.org/woodpecker/agent/...
test-server: ## Test server code
go test -race -cover -coverprofile server-coverage.out -timeout 30s github.com/woodpecker-ci/woodpecker/cmd/server $(shell go list github.com/woodpecker-ci/woodpecker/server/... | grep -v '/store')
go test -race -cover -coverprofile server-coverage.out -timeout 30s go.woodpecker-ci.org/woodpecker/cmd/server $(shell go list go.woodpecker-ci.org/woodpecker/server/... | grep -v '/store')
test-cli: ## Test cli code
go test -race -cover -coverprofile cli-coverage.out -timeout 30s github.com/woodpecker-ci/woodpecker/cmd/cli github.com/woodpecker-ci/woodpecker/cli/...
go test -race -cover -coverprofile cli-coverage.out -timeout 30s go.woodpecker-ci.org/woodpecker/cmd/cli go.woodpecker-ci.org/woodpecker/cli/...
test-server-datastore: ## Test server datastore
go test -timeout 120s -run TestMigrate github.com/woodpecker-ci/woodpecker/server/store/...
go test -race -timeout 30s -skip TestMigrate github.com/woodpecker-ci/woodpecker/server/store/...
go test -timeout 120s -run TestMigrate go.woodpecker-ci.org/woodpecker/server/store/...
go test -race -timeout 30s -skip TestMigrate go.woodpecker-ci.org/woodpecker/server/store/...
test-server-datastore-coverage: ## Test server datastore with coverage report
go test -race -cover -coverprofile datastore-coverage.out -timeout 120s github.com/woodpecker-ci/woodpecker/server/store/...
go test -race -cover -coverprofile datastore-coverage.out -timeout 120s go.woodpecker-ci.org/woodpecker/server/store/...
test-ui: ui-dependencies ## Test UI code
(cd web/; pnpm run lint)
@ -177,13 +177,13 @@ build-ui: ## Build UI
(cd web/; pnpm install --frozen-lockfile; pnpm build)
build-server: build-ui generate-swagger ## Build server
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-server${BIN_SUFFIX} github.com/woodpecker-ci/woodpecker/cmd/server
CGO_ENABLED=${CGO_ENABLED} GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-server${BIN_SUFFIX} go.woodpecker-ci.org/woodpecker/cmd/server
build-agent: ## Build agent
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-agent${BIN_SUFFIX} github.com/woodpecker-ci/woodpecker/cmd/agent
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-agent${BIN_SUFFIX} go.woodpecker-ci.org/woodpecker/cmd/agent
build-cli: ## Build cli
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-cli${BIN_SUFFIX} github.com/woodpecker-ci/woodpecker/cmd/cli
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '${LDFLAGS}' -o dist/woodpecker-cli${BIN_SUFFIX} go.woodpecker-ci.org/woodpecker/cmd/cli
.PHONY: build
build: build-agent build-server build-cli ## Build all binaries
@ -213,18 +213,18 @@ release-server-xgo: check-xgo ## Create server binaries for release using xgo
release-server: ## Create server binaries for release
# compile
GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) CGO_ENABLED=${CGO_ENABLED} go build -ldflags '${LDFLAGS}' -o dist/server/$(TARGETOS)_$(TARGETARCH)/woodpecker-server$(BIN_SUFFIX) github.com/woodpecker-ci/woodpecker/cmd/server
GOOS=$(TARGETOS) GOARCH=$(TARGETARCH) CGO_ENABLED=${CGO_ENABLED} go build -ldflags '${LDFLAGS}' -o dist/server/$(TARGETOS)_$(TARGETARCH)/woodpecker-server$(BIN_SUFFIX) go.woodpecker-ci.org/woodpecker/cmd/server
# tar binary files
tar -cvzf dist/woodpecker-server_$(TARGETOS)_$(TARGETARCH).tar.gz -C dist/server/$(TARGETOS)_$(TARGETARCH) woodpecker-server$(BIN_SUFFIX)
release-agent: ## Create agent binaries for release
# compile
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_amd64/woodpecker-agent github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_arm64/woodpecker-agent github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_arm/woodpecker-agent github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/windows_amd64/woodpecker-agent.exe github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/darwin_amd64/woodpecker-agent github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/darwin_arm64/woodpecker-agent github.com/woodpecker-ci/woodpecker/cmd/agent
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_amd64/woodpecker-agent go.woodpecker-ci.org/woodpecker/cmd/agent
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_arm64/woodpecker-agent go.woodpecker-ci.org/woodpecker/cmd/agent
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/linux_arm/woodpecker-agent go.woodpecker-ci.org/woodpecker/cmd/agent
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/windows_amd64/woodpecker-agent.exe go.woodpecker-ci.org/woodpecker/cmd/agent
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/darwin_amd64/woodpecker-agent go.woodpecker-ci.org/woodpecker/cmd/agent
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/agent/darwin_arm64/woodpecker-agent go.woodpecker-ci.org/woodpecker/cmd/agent
# tar binary files
tar -cvzf dist/woodpecker-agent_linux_amd64.tar.gz -C dist/agent/linux_amd64 woodpecker-agent
tar -cvzf dist/woodpecker-agent_linux_arm64.tar.gz -C dist/agent/linux_arm64 woodpecker-agent
@ -235,12 +235,12 @@ release-agent: ## Create agent binaries for release
release-cli: ## Create cli binaries for release
# compile
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_amd64/woodpecker-cli github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_arm64/woodpecker-cli github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_arm/woodpecker-cli github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/windows_amd64/woodpecker-cli.exe github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/darwin_amd64/woodpecker-cli github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/darwin_arm64/woodpecker-cli github.com/woodpecker-ci/woodpecker/cmd/cli
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_amd64/woodpecker-cli go.woodpecker-ci.org/woodpecker/cmd/cli
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_arm64/woodpecker-cli go.woodpecker-ci.org/woodpecker/cmd/cli
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/linux_arm/woodpecker-cli go.woodpecker-ci.org/woodpecker/cmd/cli
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/windows_amd64/woodpecker-cli.exe go.woodpecker-ci.org/woodpecker/cmd/cli
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/darwin_amd64/woodpecker-cli go.woodpecker-ci.org/woodpecker/cmd/cli
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags '${LDFLAGS}' -o dist/cli/darwin_arm64/woodpecker-cli go.woodpecker-ci.org/woodpecker/cmd/cli
# tar binary files
tar -cvzf dist/woodpecker-cli_linux_amd64.tar.gz -C dist/cli/linux_amd64 woodpecker-cli
tar -cvzf dist/woodpecker-cli_linux_arm64.tar.gz -C dist/cli/linux_arm64 woodpecker-cli

View file

@ -21,10 +21,10 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/woodpecker-ci/woodpecker/pipeline"
backend "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/multipart"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/pipeline"
backend "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/multipart"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
)
func (r *Runner) createLogger(logger zerolog.Logger, uploads *sync.WaitGroup, workflow *rpc.Workflow) pipeline.LogFunc {

View file

@ -18,7 +18,7 @@ import (
"context"
"time"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc/proto"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc/proto"
"google.golang.org/grpc"
)

View file

@ -26,9 +26,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
backend "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc/proto"
backend "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc/proto"
)
// set grpc version on compile time to compare against server version response

View file

@ -26,10 +26,10 @@ import (
"github.com/tevino/abool/v2"
"google.golang.org/grpc/metadata"
"github.com/woodpecker-ci/woodpecker/pipeline"
backend "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"github.com/woodpecker-ci/woodpecker/shared/utils"
"go.woodpecker-ci.org/woodpecker/pipeline"
backend "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/shared/utils"
)
type Runner struct {

View file

@ -22,8 +22,8 @@ import (
"github.com/rs/zerolog"
"github.com/woodpecker-ci/woodpecker/pipeline"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/pipeline"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
)
func (r *Runner) createTracer(ctxmeta context.Context, logger zerolog.Logger, workflow *rpc.Workflow) pipeline.TraceFunc {

View file

@ -17,7 +17,7 @@ package common
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/cmd/common"
)
var GlobalFlags = append([]cli.Flag{

View file

@ -21,7 +21,7 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/shared/constant"
"go.woodpecker-ci.org/woodpecker/shared/constant"
)
func DetectPipelineConfig() (isDir bool, config string, _ error) {

View file

@ -17,7 +17,7 @@ package common
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/cmd/common"
)
func SetupGlobalLogger(c *cli.Context) error {

View file

@ -17,7 +17,7 @@ package cron
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the cron command set.

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var cronCreateCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var cronInfoCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var cronListCmd = &cli.Command{

View file

@ -19,8 +19,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var cronDeleteCmd = &cli.Command{

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var cronUpdateCmd = &cli.Command{

View file

@ -22,9 +22,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
// Command exports the deploy command.

View file

@ -27,19 +27,19 @@ import (
"github.com/drone/envsubst"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/pipeline"
"github.com/woodpecker-ci/woodpecker/pipeline/backend"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/docker"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/kubernetes"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/local"
backendTypes "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/compiler"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/linter"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/matrix"
"github.com/woodpecker-ci/woodpecker/pipeline/multipart"
"github.com/woodpecker-ci/woodpecker/shared/utils"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/pipeline"
"go.woodpecker-ci.org/woodpecker/pipeline/backend"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/docker"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/kubernetes"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/local"
backendTypes "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/compiler"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/linter"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/matrix"
"go.woodpecker-ci.org/woodpecker/pipeline/multipart"
"go.woodpecker-ci.org/woodpecker/shared/utils"
)
// Command exports the exec command.

View file

@ -19,7 +19,7 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/shared/constant"
"go.woodpecker-ci.org/woodpecker/shared/constant"
)
var flags = []cli.Flag{

View file

@ -20,7 +20,7 @@ import (
"strings"
"time"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
)
// LineWriter sends logs to the client.

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/matrix"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/matrix"
"go.woodpecker-ci.org/woodpecker/version"
)
// return the metadata from the cli context.

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
// Command exports the info command.

View file

@ -27,7 +27,7 @@ import (
"golang.org/x/net/proxy"
"golang.org/x/oauth2"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
// NewClient returns a new client from the CLI context.

View file

@ -25,10 +25,10 @@ import (
"github.com/muesli/termenv"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
pipeline_errors "github.com/woodpecker-ci/woodpecker/pipeline/errors"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/linter"
"go.woodpecker-ci.org/woodpecker/cli/common"
pipeline_errors "go.woodpecker-ci.org/woodpecker/pipeline/errors"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/linter"
)
// Command exports the info command.

View file

@ -17,7 +17,7 @@ package log
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the log command set.

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var logPurgeCmd = &cli.Command{

View file

@ -19,9 +19,9 @@ import (
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
// Command exports the log-level command used to change the servers log-level.

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineApproveCmd = &cli.Command{

View file

@ -19,12 +19,12 @@ import (
"strings"
"text/template"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineCreateCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineDeclineCmd = &cli.Command{

View file

@ -21,8 +21,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineInfoCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineKillCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineLastCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineListCmd = &cli.Command{

View file

@ -18,8 +18,8 @@ import (
"fmt"
"strconv"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"github.com/urfave/cli/v2"
)

View file

@ -17,7 +17,7 @@ package pipeline
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the pipeline command set.

View file

@ -21,8 +21,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelinePsCmd = &cli.Command{

View file

@ -21,8 +21,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineQueueCmd = &cli.Command{

View file

@ -21,8 +21,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineStartCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var pipelineStopCmd = &cli.Command{

View file

@ -17,7 +17,7 @@ package registry
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the registry command set.

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var registryCreateCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var registryInfoCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var registryListCmd = &cli.Command{

View file

@ -17,8 +17,8 @@ package registry
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var registryDeleteCmd = &cli.Command{

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var registryUpdateCmd = &cli.Command{

View file

@ -17,7 +17,7 @@ package repo
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the repository command.

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoAddCmd = &cli.Command{

View file

@ -19,8 +19,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoChownCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoInfoCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoListCmd = &cli.Command{

View file

@ -19,8 +19,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoRepairCmd = &cli.Command{

View file

@ -19,8 +19,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoRemoveCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var repoSyncCmd = &cli.Command{

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var repoUpdateCmd = &cli.Command{

View file

@ -21,9 +21,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
// Command exports the secret command.

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var secretCreateCmd = &cli.Command{

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var secretInfoCmd = &cli.Command{

View file

@ -21,9 +21,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var secretListCmd = &cli.Command{

View file

@ -17,8 +17,8 @@ package secret
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var secretDeleteCmd = &cli.Command{

View file

@ -20,9 +20,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var secretUpdateCmd = &cli.Command{

View file

@ -17,7 +17,7 @@ package user
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/common"
)
// Command exports the user command set.

View file

@ -19,9 +19,9 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/woodpecker-go/woodpecker"
)
var userAddCmd = &cli.Command{

View file

@ -21,8 +21,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var userInfoCmd = &cli.Command{

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var userListCmd = &cli.Command{

View file

@ -19,8 +19,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/internal"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/internal"
)
var userRemoveCmd = &cli.Command{

View file

@ -37,14 +37,14 @@ import (
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
"github.com/woodpecker-ci/woodpecker/agent"
agentRpc "github.com/woodpecker-ci/woodpecker/agent/rpc"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"github.com/woodpecker-ci/woodpecker/pipeline/backend"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc"
"github.com/woodpecker-ci/woodpecker/shared/utils"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/agent"
agentRpc "go.woodpecker-ci.org/woodpecker/agent/rpc"
"go.woodpecker-ci.org/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/pipeline/backend"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc"
"go.woodpecker-ci.org/woodpecker/shared/utils"
"go.woodpecker-ci.org/woodpecker/version"
)
func run(c *cli.Context) error {

View file

@ -23,8 +23,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/agent"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/agent"
"go.woodpecker-ci.org/woodpecker/version"
)
// the file implements some basic healthcheck logic based on the

View file

@ -18,7 +18,7 @@ import (
"testing"
"time"
"github.com/woodpecker-ci/woodpecker/agent"
"go.woodpecker-ci.org/woodpecker/agent"
)
func TestHealthy(t *testing.T) {

View file

@ -21,12 +21,12 @@ import (
_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/docker"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/kubernetes"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/local"
"github.com/woodpecker-ci/woodpecker/shared/utils"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/docker"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/kubernetes"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/local"
"go.woodpecker-ci.org/woodpecker/shared/utils"
"go.woodpecker-ci.org/woodpecker/version"
)
func main() {

View file

@ -17,20 +17,20 @@ package main
import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cli/common"
"github.com/woodpecker-ci/woodpecker/cli/cron"
"github.com/woodpecker-ci/woodpecker/cli/deploy"
"github.com/woodpecker-ci/woodpecker/cli/exec"
"github.com/woodpecker-ci/woodpecker/cli/info"
"github.com/woodpecker-ci/woodpecker/cli/lint"
"github.com/woodpecker-ci/woodpecker/cli/log"
"github.com/woodpecker-ci/woodpecker/cli/loglevel"
"github.com/woodpecker-ci/woodpecker/cli/pipeline"
"github.com/woodpecker-ci/woodpecker/cli/registry"
"github.com/woodpecker-ci/woodpecker/cli/repo"
"github.com/woodpecker-ci/woodpecker/cli/secret"
"github.com/woodpecker-ci/woodpecker/cli/user"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/cli/common"
"go.woodpecker-ci.org/woodpecker/cli/cron"
"go.woodpecker-ci.org/woodpecker/cli/deploy"
"go.woodpecker-ci.org/woodpecker/cli/exec"
"go.woodpecker-ci.org/woodpecker/cli/info"
"go.woodpecker-ci.org/woodpecker/cli/lint"
"go.woodpecker-ci.org/woodpecker/cli/log"
"go.woodpecker-ci.org/woodpecker/cli/loglevel"
"go.woodpecker-ci.org/woodpecker/cli/pipeline"
"go.woodpecker-ci.org/woodpecker/cli/registry"
"go.woodpecker-ci.org/woodpecker/cli/repo"
"go.woodpecker-ci.org/woodpecker/cli/secret"
"go.woodpecker-ci.org/woodpecker/cli/user"
"go.woodpecker-ci.org/woodpecker/version"
)
//go:generate go run docs.go app.go

View file

@ -20,8 +20,8 @@ import (
"github.com/urfave/cli/v2"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"github.com/woodpecker-ci/woodpecker/shared/constant"
"go.woodpecker-ci.org/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/shared/constant"
)
var flags = append([]cli.Flag{

View file

@ -20,9 +20,9 @@ import (
_ "github.com/joho/godotenv/autoload"
"github.com/urfave/cli/v2"
_ "github.com/woodpecker-ci/woodpecker/cmd/server/docs"
_ "go.woodpecker-ci.org/woodpecker/cmd/server/docs"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/version"
)
func main() {

View file

@ -34,24 +34,24 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/keepalive"
"github.com/woodpecker-ci/woodpecker/cmd/common"
"github.com/woodpecker-ci/woodpecker/pipeline/rpc/proto"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/cron"
"github.com/woodpecker-ci/woodpecker/server/forge"
woodpeckerGrpcServer "github.com/woodpecker-ci/woodpecker/server/grpc"
"github.com/woodpecker-ci/woodpecker/server/logging"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/plugins/config"
"github.com/woodpecker-ci/woodpecker/server/pubsub"
"github.com/woodpecker-ci/woodpecker/server/router"
"github.com/woodpecker-ci/woodpecker/server/router/middleware"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/server/web"
"github.com/woodpecker-ci/woodpecker/shared/constant"
"github.com/woodpecker-ci/woodpecker/version"
// "github.com/woodpecker-ci/woodpecker/server/plugins/encryption"
// encryptedStore "github.com/woodpecker-ci/woodpecker/server/plugins/encryption/wrapper/store"
"go.woodpecker-ci.org/woodpecker/cmd/common"
"go.woodpecker-ci.org/woodpecker/pipeline/rpc/proto"
"go.woodpecker-ci.org/woodpecker/server"
"go.woodpecker-ci.org/woodpecker/server/cron"
"go.woodpecker-ci.org/woodpecker/server/forge"
woodpeckerGrpcServer "go.woodpecker-ci.org/woodpecker/server/grpc"
"go.woodpecker-ci.org/woodpecker/server/logging"
"go.woodpecker-ci.org/woodpecker/server/model"
"go.woodpecker-ci.org/woodpecker/server/plugins/config"
"go.woodpecker-ci.org/woodpecker/server/pubsub"
"go.woodpecker-ci.org/woodpecker/server/router"
"go.woodpecker-ci.org/woodpecker/server/router/middleware"
"go.woodpecker-ci.org/woodpecker/server/store"
"go.woodpecker-ci.org/woodpecker/server/web"
"go.woodpecker-ci.org/woodpecker/shared/constant"
"go.woodpecker-ci.org/woodpecker/version"
// "go.woodpecker-ci.org/woodpecker/server/plugins/encryption"
// encryptedStore "go.woodpecker-ci.org/woodpecker/server/plugins/encryption/wrapper/store"
)
func run(c *cli.Context) error {

View file

@ -34,21 +34,21 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/sync/errgroup"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/cache"
"github.com/woodpecker-ci/woodpecker/server/forge"
"github.com/woodpecker-ci/woodpecker/server/forge/bitbucket"
"github.com/woodpecker-ci/woodpecker/server/forge/gitea"
"github.com/woodpecker-ci/woodpecker/server/forge/github"
"github.com/woodpecker-ci/woodpecker/server/forge/gitlab"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/plugins/environments"
"github.com/woodpecker-ci/woodpecker/server/plugins/registry"
"github.com/woodpecker-ci/woodpecker/server/plugins/secrets"
"github.com/woodpecker-ci/woodpecker/server/queue"
"github.com/woodpecker-ci/woodpecker/server/store"
"github.com/woodpecker-ci/woodpecker/server/store/datastore"
"github.com/woodpecker-ci/woodpecker/server/store/types"
"go.woodpecker-ci.org/woodpecker/server"
"go.woodpecker-ci.org/woodpecker/server/cache"
"go.woodpecker-ci.org/woodpecker/server/forge"
"go.woodpecker-ci.org/woodpecker/server/forge/bitbucket"
"go.woodpecker-ci.org/woodpecker/server/forge/gitea"
"go.woodpecker-ci.org/woodpecker/server/forge/github"
"go.woodpecker-ci.org/woodpecker/server/forge/gitlab"
"go.woodpecker-ci.org/woodpecker/server/model"
"go.woodpecker-ci.org/woodpecker/server/plugins/environments"
"go.woodpecker-ci.org/woodpecker/server/plugins/registry"
"go.woodpecker-ci.org/woodpecker/server/plugins/secrets"
"go.woodpecker-ci.org/woodpecker/server/queue"
"go.woodpecker-ci.org/woodpecker/server/store"
"go.woodpecker-ci.org/woodpecker/server/store/datastore"
"go.woodpecker-ci.org/woodpecker/server/store/types"
)
func setupStore(c *cli.Context) (store.Store, error) {

View file

@ -15,8 +15,8 @@
package main
import (
"github.com/woodpecker-ci/woodpecker/cmd/server/docs"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/cmd/server/docs"
"go.woodpecker-ci.org/woodpecker/version"
)
// generate docs/swagger.json via:

View file

@ -25,7 +25,7 @@ import (
"os"
"path"
"github.com/woodpecker-ci/woodpecker/cmd/server/docs"
"go.woodpecker-ci.org/woodpecker/cmd/server/docs"
)
func main() {

View file

@ -123,7 +123,7 @@ make test-frontend
If you want to test a specific go file you can also use:
```bash
go test -race -timeout 30s github.com/woodpecker-ci/woodpecker/<path-to-the-package-or-file-to-test>
go test -race -timeout 30s go.woodpecker-ci.org/woodpecker/<path-to-the-package-or-file-to-test>
```
Or you can open the test-file inside [VS-Code](#developing-with-vs-code) and run or debug the test by clicking on the inline commands:

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/woodpecker-ci/woodpecker
module go.woodpecker-ci.org/woodpecker
go 1.21

View file

@ -18,10 +18,10 @@ import (
"context"
"fmt"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/docker"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/kubernetes"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/local"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/docker"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/kubernetes"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/local"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
)
var (

View file

@ -22,8 +22,8 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/common"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/common"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
)
// returns a container configuration.

View file

@ -33,8 +33,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"
backend "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/shared/utils"
backend "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/shared/utils"
)
type docker struct {

View file

@ -24,7 +24,7 @@ import (
"time"
"github.com/rs/zerolog/log"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"gopkg.in/yaml.v3"
"github.com/urfave/cli/v2"

View file

@ -24,8 +24,8 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/common"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/common"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
)
func Pod(namespace string, step *types.Step, labels, annotations map[string]string, goos string) (*v1.Pod, error) {

View file

@ -26,7 +26,7 @@ import (
"strings"
"github.com/rs/zerolog/log"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
)
// checkGitCloneCap check if we have the git binary on hand

View file

@ -31,7 +31,7 @@ import (
"golang.org/x/text/encoding/unicode"
"golang.org/x/text/transform"
"github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
)
type workflowState struct {

View file

@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"go.uber.org/multierr"
pipeline_errors "github.com/woodpecker-ci/woodpecker/pipeline/errors"
pipeline_errors "go.woodpecker-ci.org/woodpecker/pipeline/errors"
)
func TestGetPipelineErrors(t *testing.T) {

View file

@ -21,9 +21,9 @@ import (
"github.com/drone/envsubst"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/version"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/server/model"
"go.woodpecker-ci.org/woodpecker/version"
)
func EnvVarSubst(yaml string, environ map[string]string) (string, error) {

View file

@ -19,7 +19,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
)
func TestSetDroneEnviron(t *testing.T) {

View file

@ -19,10 +19,10 @@ import (
"github.com/stretchr/testify/assert"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"github.com/woodpecker-ci/woodpecker/server/forge/mocks"
"github.com/woodpecker-ci/woodpecker/server/model"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/server/forge/mocks"
"go.woodpecker-ci.org/woodpecker/server/model"
)
func TestEnvVarSubst(t *testing.T) {

View file

@ -18,7 +18,7 @@ import (
"path"
"strings"
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
yaml_types "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types"
)
// Cacher defines a compiler transform that can be used

View file

@ -18,11 +18,11 @@ import (
"fmt"
"path"
backend_types "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/utils"
"github.com/woodpecker-ci/woodpecker/shared/constant"
backend_types "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
yaml_types "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/utils"
"go.woodpecker-ci.org/woodpecker/shared/constant"
)
const (

View file

@ -19,11 +19,11 @@ import (
"github.com/stretchr/testify/assert"
backend_types "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
yaml_base_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types/base"
"github.com/woodpecker-ci/woodpecker/shared/constant"
backend_types "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
yaml_types "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types"
yaml_base_types "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types/base"
"go.woodpecker-ci.org/woodpecker/shared/constant"
)
func TestSecretAvailable(t *testing.T) {

View file

@ -22,11 +22,11 @@ import (
"github.com/google/uuid"
backend_types "github.com/woodpecker-ci/woodpecker/pipeline/backend/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/compiler/settings"
yaml_types "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/utils"
backend_types "go.woodpecker-ci.org/woodpecker/pipeline/backend/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/compiler/settings"
yaml_types "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/utils"
)
func (c *Compiler) createProcess(name string, container *yaml_types.Container, stepType backend_types.StepType) (*backend_types.Step, error) {

View file

@ -19,7 +19,7 @@ import (
"path"
"strings"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
)
// Option configures a compiler option.

View file

@ -18,7 +18,7 @@ import (
"reflect"
"testing"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
)
func TestWithWorkspace(t *testing.T) {

View file

@ -25,8 +25,8 @@ import (
"go.uber.org/multierr"
"gopkg.in/yaml.v3"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
yamlBaseTypes "github.com/woodpecker-ci/woodpecker/pipeline/frontend/yaml/types/base"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
yamlBaseTypes "go.woodpecker-ci.org/woodpecker/pipeline/frontend/yaml/types/base"
)
type (

View file

@ -20,8 +20,8 @@ import (
"github.com/stretchr/testify/assert"
"gopkg.in/yaml.v3"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend"
"github.com/woodpecker-ci/woodpecker/pipeline/frontend/metadata"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend"
"go.woodpecker-ci.org/woodpecker/pipeline/frontend/metadata"
)
func TestConstraint(t *testing.T) {

View file

@ -15,7 +15,7 @@
package linter
import (
"github.com/woodpecker-ci/woodpecker/pipeline/errors"
"go.woodpecker-ci.org/woodpecker/pipeline/errors"
)
func newLinterError(message, file, field string, isWarning bool) *errors.PipelineError {

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