Merge branch 'drone-and-import-paths-fixing' of pztrn/giredore into master

This commit is contained in:
Stanislav Nikitin 2019-10-13 10:15:39 +00:00 committed by Gitea
commit ef597063cf
17 changed files with 50 additions and 29 deletions

View File

@ -13,8 +13,27 @@ steps:
from_secret: discord_webhook_secret
message: 'Starting building **{{repo.name}}#{{build.number}}@{{build.commit}}** @ {{datetime build.started "02-Jan-2006 15:04:05 MST" "Asia/Yekaterinburg"}} (See {{build.link}} for logs).'
- name: lint
image: golangci/golangci-lint:latest
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- golangci-lint run
- name: test
image: golang:1.13.1-alpine
environment:
GOFLAGS: -mod=vendor
CGO_ENABLED: 0
commands:
- go test ./...
- name: docker
image: plugins/docker
when:
branch:
master
settings:
username:
from_secret: dockerhub_user
@ -36,7 +55,7 @@ steps:
from_secret: discord_webhook_secret
message: "
{{#success build.status}}
**{{repo.name}}#{{build.number}}@{{build.commit}}** deployed.
**{{repo.name}}#{{build.number}}@{{build.commit}}** built and pushed to hub.docker.com.
{{ else }}
**{{repo.name}}#{{build.number}}@{{build.commit}}** failed. See {{build.link}}.
{{/success}}"

View File

@ -1,3 +1,5 @@
[![Build Status](https://ci.dev.pztrn.name/api/badges/pztrn/giredore/status.svg)](https://ci.dev.pztrn.name/pztrn/giredore) [![Discord](https://img.shields.io/discord/632359730089689128)](https://discord.gg/qHN6KsD) ![Keybase XLM](https://img.shields.io/keybase/xlm/pztrn)
# Giredore
**Giredore** is an utility that does go-import redirects right. Main idea of this project is to provide easy-to-use yet powerful tool for Go developers to serve they packages right and help them with getting nice and very static URLs for their packages.

View File

@ -5,8 +5,8 @@ import (
"os"
// local
clientv1 "sources.dev.pztrn.name/pztrn/giredore/domains/client/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
clientv1 "go.dev.pztrn.name/giredore/domains/client/v1"
"go.dev.pztrn.name/giredore/internal/logger"
// other
"github.com/teris-io/cli"

View File

@ -7,10 +7,10 @@ import (
"syscall"
// local
serverv1 "sources.dev.pztrn.name/pztrn/giredore/domains/server/v1"
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
serverv1 "go.dev.pztrn.name/giredore/domains/server/v1"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/httpserver"
"go.dev.pztrn.name/giredore/internal/logger"
)
func main() {

View File

@ -5,8 +5,8 @@ import (
"strings"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/structs"
)
func GetConfiguration(options map[string]string) {

View File

@ -2,8 +2,8 @@ package clientv1
import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/requester"
// other
"github.com/rs/zerolog"

View File

@ -5,8 +5,8 @@ import (
"strings"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/requester"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/requester"
"go.dev.pztrn.name/giredore/internal/structs"
)
func DeletePackage(args []string, options map[string]string) {

View File

@ -5,8 +5,8 @@ import (
"net/http"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"
// other
"github.com/labstack/echo"

View File

@ -2,8 +2,8 @@ package serverv1
import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/httpserver"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/httpserver"
"go.dev.pztrn.name/giredore/internal/logger"
// other
"github.com/rs/zerolog"

View File

@ -6,8 +6,8 @@ import (
"strings"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"
// other
"github.com/labstack/echo"

View File

@ -6,8 +6,8 @@ import (
"strings"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"
// other
"github.com/labstack/echo"

2
go.mod
View File

@ -1,4 +1,4 @@
module sources.dev.pztrn.name/pztrn/giredore
module go.dev.pztrn.name/giredore
go 1.13

View File

@ -2,7 +2,7 @@ package configuration
import (
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/logger"
// other
"github.com/rs/zerolog"

View File

@ -10,7 +10,7 @@ import (
"sync"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/structs"
)
// This structure represents configuration that will be parsed via file.

View File

@ -7,8 +7,8 @@ import (
"strings"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/structs"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/structs"
// other
"github.com/labstack/echo"

View File

@ -9,8 +9,8 @@ import (
"time"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/configuration"
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/configuration"
"go.dev.pztrn.name/giredore/internal/logger"
// other
"github.com/labstack/echo"

View File

@ -8,7 +8,7 @@ import (
"net/http"
// local
"sources.dev.pztrn.name/pztrn/giredore/internal/logger"
"go.dev.pztrn.name/giredore/internal/logger"
// other
"github.com/rs/zerolog"