Update imports
This commit is contained in:
@@ -12,6 +12,7 @@ require (
|
|||||||
github.com/markbates/goth v1.81.0
|
github.com/markbates/goth v1.81.0
|
||||||
github.com/mattn/go-sqlite3 v1.14.29
|
github.com/mattn/go-sqlite3 v1.14.29
|
||||||
golang.org/x/crypto v0.40.0
|
golang.org/x/crypto v0.40.0
|
||||||
|
golang.org/x/net v0.41.0
|
||||||
golang.org/x/oauth2 v0.30.0
|
golang.org/x/oauth2 v0.30.0
|
||||||
maragu.dev/gomponents v1.1.0
|
maragu.dev/gomponents v1.1.0
|
||||||
maragu.dev/gomponents-htmx v0.6.1
|
maragu.dev/gomponents-htmx v0.6.1
|
||||||
@@ -43,7 +44,6 @@ require (
|
|||||||
github.com/zclconf/go-cty v1.14.4 // indirect
|
github.com/zclconf/go-cty v1.14.4 // indirect
|
||||||
github.com/zclconf/go-cty-yaml v1.1.0 // indirect
|
github.com/zclconf/go-cty-yaml v1.1.0 // indirect
|
||||||
golang.org/x/mod v0.25.0 // indirect
|
golang.org/x/mod v0.25.0 // indirect
|
||||||
golang.org/x/net v0.41.0 // indirect
|
|
||||||
golang.org/x/sync v0.16.0 // indirect
|
golang.org/x/sync v0.16.0 // indirect
|
||||||
golang.org/x/sys v0.34.0 // indirect
|
golang.org/x/sys v0.34.0 // indirect
|
||||||
golang.org/x/text v0.27.0 // indirect
|
golang.org/x/text v0.27.0 // indirect
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package about
|
package about
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
|
|
||||||
. "maragu.dev/gomponents"
|
. "maragu.dev/gomponents"
|
||||||
. "maragu.dev/gomponents/html"
|
. "maragu.dev/gomponents/html"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package contact
|
package contact
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
|
|
||||||
. "maragu.dev/gomponents"
|
. "maragu.dev/gomponents"
|
||||||
. "maragu.dev/gomponents/html"
|
. "maragu.dev/gomponents/html"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package create
|
package create
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
. "git.gorlug.de/code/ersteller"
|
||||||
"git.gorlug.de/code/ersteller/starter/env"
|
"git.gorlug.de/code/ersteller/starter/env"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package schema
|
package schema
|
||||||
|
|
||||||
import (
|
import (
|
||||||
ersteller_ent "ersteller-lib/schema/ent"
|
ersteller_ent "git.gorlug.de/code/ersteller/schema/ent"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package schema
|
package schema
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ersteller-lib/schema/ent"
|
"git.gorlug.de/code/ersteller/schema/ent"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package schema
|
package schema
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"ersteller-lib/schema/ent"
|
"git.gorlug.de/code/ersteller/schema/ent"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
|
|||||||
+1
-3
@@ -4,7 +4,7 @@ go 1.25.0
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
entgo.io/ent v0.14.5
|
entgo.io/ent v0.14.5
|
||||||
ersteller-lib v0.0.0
|
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc
|
||||||
github.com/gorilla/sessions v1.4.0
|
github.com/gorilla/sessions v1.4.0
|
||||||
github.com/joho/godotenv v1.5.1
|
github.com/joho/godotenv v1.5.1
|
||||||
golang.org/x/oauth2 v0.30.0
|
golang.org/x/oauth2 v0.30.0
|
||||||
@@ -49,5 +49,3 @@ require (
|
|||||||
golang.org/x/tools v0.36.0 // indirect
|
golang.org/x/tools v0.36.0 // indirect
|
||||||
maragu.dev/gomponents-htmx v0.6.1 // indirect
|
maragu.dev/gomponents-htmx v0.6.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
replace ersteller-lib => ..
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2Qx
|
|||||||
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
|
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
|
||||||
entgo.io/ent v0.14.5 h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=
|
entgo.io/ent v0.14.5 h1:Rj2WOYJtCkWyFo6a+5wB3EfBRP0rnx1fMk6gGA0UUe4=
|
||||||
entgo.io/ent v0.14.5/go.mod h1:zTzLmWtPvGpmSwtkaayM2cm5m819NdM7z7tYPq3vN0U=
|
entgo.io/ent v0.14.5/go.mod h1:zTzLmWtPvGpmSwtkaayM2cm5m819NdM7z7tYPq3vN0U=
|
||||||
|
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc h1:oin+Mm/Z9FaR0To40MDGrFsEdK7s7FDaC9vImeyvMdg=
|
||||||
|
git.gorlug.de/code/ersteller v0.0.0-20251115110439-18d05566e2fc/go.mod h1:1pFeoQnWLWVcAfSPCq0Fwr+cJ6gqiW475B8Mt2Kuk7Y=
|
||||||
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
|
github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
|
||||||
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
|
github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
|
||||||
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
|
github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo=
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package google
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
ersteller_lib "ersteller-lib"
|
"git.gorlug.de/code/ersteller"
|
||||||
google_http "ersteller-lib/authentication/google/http"
|
google_http "git.gorlug.de/code/ersteller/authentication/google/http"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent"
|
"git.gorlug.de/code/ersteller/starter/ent"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent/user"
|
"git.gorlug.de/code/ersteller/starter/ent/user"
|
||||||
)
|
)
|
||||||
@@ -25,7 +25,7 @@ func (d *Database) GetUserIdByEmail(ctx context.Context, email string) (int, err
|
|||||||
func (d *Database) CreateUser(ctx context.Context, email string) (int, error) {
|
func (d *Database) CreateUser(ctx context.Context, email string) (int, error) {
|
||||||
newUser, err := d.db.User.Create().SetEmail(email).Save(ctx)
|
newUser, err := d.db.User.Create().SetEmail(email).Save(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ersteller_lib.LogError("Failed to create user: %v", err)
|
ersteller.LogError("Failed to create user: %v", err)
|
||||||
return -1, err
|
return -1, err
|
||||||
}
|
}
|
||||||
return newUser.ID, nil
|
return newUser.ID, nil
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package index
|
package index
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
|
|
||||||
. "maragu.dev/gomponents"
|
. "maragu.dev/gomponents"
|
||||||
. "maragu.dev/gomponents/html"
|
. "maragu.dev/gomponents/html"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package login
|
package login
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
|
|
||||||
. "maragu.dev/gomponents"
|
. "maragu.dev/gomponents"
|
||||||
. "maragu.dev/gomponents/html"
|
. "maragu.dev/gomponents/html"
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent"
|
"git.gorlug.de/code/ersteller/starter/ent"
|
||||||
"git.gorlug.de/code/ersteller/starter/env"
|
"git.gorlug.de/code/ersteller/starter/env"
|
||||||
"git.gorlug.de/code/ersteller/starter/routes"
|
"git.gorlug.de/code/ersteller/starter/routes"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package routes
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
"ersteller-lib/authentication"
|
"git.gorlug.de/code/ersteller/authentication"
|
||||||
google_http "ersteller-lib/authentication/google/http"
|
google_http "git.gorlug.de/code/ersteller/authentication/google/http"
|
||||||
"git.gorlug.de/code/ersteller/starter/about"
|
"git.gorlug.de/code/ersteller/starter/about"
|
||||||
"git.gorlug.de/code/ersteller/starter/contact"
|
"git.gorlug.de/code/ersteller/starter/contact"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent"
|
"git.gorlug.de/code/ersteller/starter/ent"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
. "ersteller-lib"
|
. "git.gorlug.de/code/ersteller"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent"
|
"git.gorlug.de/code/ersteller/starter/ent"
|
||||||
"git.gorlug.de/code/ersteller/starter/ent/todo"
|
"git.gorlug.de/code/ersteller/starter/ent/todo"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user