Browse Source

changed imports to use the new codeberg name

master
Stefan Naumann 4 months ago
parent
commit
c0aca6d9f4
  1. 6
      Makefile
  2. 2
      auth/base.go
  3. 2
      auth/dummy.go
  4. 2
      auth/native.go
  5. 2
      auth/totp.go
  6. 4
      build/build.go
  7. 4
      build/worker.go
  8. 2
      hook/gitea.go
  9. 2
      hook/hook.go
  10. 10
      main.go
  11. 4
      web/admin.go
  12. 4
      web/api.go
  13. 2
      web/auth.go
  14. 4
      web/build.go
  15. 4
      web/index.go
  16. 4
      web/install.go
  17. 4
      web/oauth.go
  18. 2
      web/public.go
  19. 4
      web/repo.go
  20. 2
      web/routing.go
  21. 4
      web/user.go
  22. 8
      web/webhook.go

6
Makefile

@ -8,9 +8,9 @@ GOVERSION=$(shell go version)
DATE=$(shell date)
LDFLAGS=-s -w
LDGENERICFLAGS=-X 'git.snaums.de/snaums/mvoCI/core.BuildTime=$(DATE)' -X 'git.snaums.de/snaums/mvoCI/core.Compiler=$(GOVERSION)' -X 'git.snaums.de/snaums/mvoCI/core.GitHash=$(HASH)'
DEBUGLDVERSION=-X 'git.snaums.de/snaums/mvoCI/core.Version=dev-$(DEBUGVERSION)'
RELEASELDVERSION=-X 'git.snaums.de/snaums/mvoCI/core.Version=$(RELEASEVERSION)'
LDGENERICFLAGS=-X 'codeberg.org/snaums/mvoCI/core.BuildTime=$(DATE)' -X 'codeberg.org/snaums/mvoCI/core.Compiler=$(GOVERSION)' -X 'codeberg.org/snaums/mvoCI/core.GitHash=$(HASH)'
DEBUGLDVERSION=-X 'codeberg.org/snaums/mvoCI/core.Version=dev-$(DEBUGVERSION)'
RELEASELDVERSION=-X 'codeberg.org/snaums/mvoCI/core.Version=$(RELEASEVERSION)'
DEBUGLDFLAGS=$(LDFLAGS) $(DEBUGLDVERSION) $(LDGENERICFLAGS)
RELEASELDFLAGS=$(LDFLAGS) $(RELEASELDVERSION) $(LDGENERICFLAGS)

2
auth/base.go

@ -34,7 +34,7 @@ import (
"strings"
"encoding/json"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"gorm.io/gorm"
)

2
auth/dummy.go

@ -6,7 +6,7 @@ import (
"strings"
"math/rand"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
)
var dummyProvider = Provider {

2
auth/native.go

@ -4,7 +4,7 @@ import (
"errors"
"net/url"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"golang.org/x/crypto/bcrypt"
)

2
auth/totp.go

@ -12,7 +12,7 @@ import (
"encoding/json"
"encoding/base64"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"github.com/pquerna/otp/totp"
"golang.org/x/crypto/bcrypt"

4
build/build.go

@ -6,8 +6,8 @@ package build
import (
"time"
"errors"
"git.snaums.de/snaums/mvoCI/core"
. "git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
. "codeberg.org/snaums/mvoCI/core"
"gorm.io/gorm"
)

4
build/worker.go

@ -15,8 +15,8 @@ import (
"strings"
"strconv"
"io/ioutil"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/hook"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/hook"
"gorm.io/gorm"
)

2
hook/gitea.go

@ -6,7 +6,7 @@ import (
"strings"
"golang.org/x/oauth2"
"strconv"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"encoding/json"
"gorm.io/gorm"

2
hook/hook.go

@ -10,7 +10,7 @@ import (
"path/filepath"
"mime/multipart"
"golang.org/x/oauth2"
//"git.snaums.de/snaums/mvoCI/core"
//"codeberg.org/snaums/mvoCI/core"
)
var AppName = "mvoCI"

10
main.go

@ -12,11 +12,11 @@ import (
"strconv"
"net/http"
"io/ioutil"
. "git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/web"
"git.snaums.de/snaums/mvoCI/build"
. "git.snaums.de/snaums/mvoCI/hook"
. "codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/web"
"codeberg.org/snaums/mvoCI/build"
. "codeberg.org/snaums/mvoCI/hook"
"encoding/json"
"gorm.io/gorm"

4
web/admin.go

@ -3,8 +3,8 @@ package web
import (
"strconv"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/auth"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/auth"
"github.com/labstack/echo/v4"
)

4
web/api.go

@ -5,8 +5,8 @@ import (
//"regexp"
"errors"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/build"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/build"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

2
web/auth.go

@ -9,7 +9,7 @@ import (
"crypto/rand"
"encoding/hex"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"github.com/labstack/echo/v4"
// "golang.org/x/crypto/bcrypt"
)

4
web/build.go

@ -7,8 +7,8 @@ import (
"strconv"
//"regexp"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/build"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/build"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

4
web/index.go

@ -3,8 +3,8 @@ package web
import (
"errors"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/auth"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/auth"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

4
web/install.go

@ -4,8 +4,8 @@ import (
"os"
"net/http"
"strconv"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/auth"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/auth"
"regexp"
//"github.com/jinzhu/gorm"

4
web/oauth.go

@ -3,8 +3,8 @@ package web
import (
//"regexp"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/hook"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/hook"
"strconv"
"encoding/json"
"context"

2
web/public.go

@ -3,7 +3,7 @@ package web
import (
"strconv"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"github.com/labstack/echo/v4"
)

4
web/repo.go

@ -6,8 +6,8 @@ import (
"strconv"
//"regexp"
"net/http"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/build"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/build"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

2
web/routing.go

@ -11,7 +11,7 @@ import (
"strconv"
"net/http"
"html/template"
"git.snaums.de/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"gorm.io/gorm"
"github.com/labstack/echo/v4"

4
web/user.go

@ -7,8 +7,8 @@ import (
"regexp"
"net/http"
"html/template"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/auth"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/auth"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

8
web/webhook.go

@ -14,10 +14,10 @@ import (
"crypto/sha256"
"crypto/sha1"
"encoding/hex"
. "git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/core"
"git.snaums.de/snaums/mvoCI/build"
. "git.snaums.de/snaums/mvoCI/hook"
. "codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/core"
"codeberg.org/snaums/mvoCI/build"
. "codeberg.org/snaums/mvoCI/hook"
//"golang.org/x/crypto/bcrypt"
//"github.com/jinzhu/gorm"

Loading…
Cancel
Save