Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/italia/publiccode-validator-api
go 1.26.0

require (
github.com/caarlos0/env/v6 v6.10.1
github.com/gofiber/fiber/v3 v3.6.1
github.com/publiccodeyml/libpubliccode/v5 v5.5.1
github.com/stretchr/testify v1.12.1
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
github.com/alranel/go-vcsurl/v2 v2.1.1 h1:wmRuxh1VA8pDN6psgup03H0EQ2ezFXwuFLIpBGggv3I=
github.com/alranel/go-vcsurl/v2 v2.1.1/go.mod h1:P90onUhV9Qo/Icgfk58qbhg9mF3WcheC0I6wy/SUI3M=
github.com/caarlos0/env/v6 v6.10.1 h1:t1mPSxNpei6M5yAeu1qtRdPAK29Nbcf/n3G7x+b3/II=
github.com/caarlos0/env/v6 v6.10.1/go.mod h1:hvp/ryKXKipEkcuYjs9mI4bBCg+UI0Yhgm5Zu0ddvwc=
github.com/fxamacker/cbor/v2 v2.9.6 h1:NHZPxuUjJXQjX9itA785y/5NKSlI4HQ+S7noZsmI7hs=
github.com/fxamacker/cbor/v2 v2.9.6/go.mod h1:4EaZp6ClVunETjQ4GHmGNzysDK91Lr+r6Yz6tJqzVCw=
github.com/gabriel-vasile/mimetype v1.4.16 h1:5izNFuvA37st1dDRAcA7TtmngBmRgiIPDmTtiEvjx1E=
Expand Down
11 changes: 0 additions & 11 deletions internal/common/env.go

This file was deleted.

5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"log"

"github.com/caarlos0/env/v6"
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/middleware/cors"
"github.com/gofiber/fiber/v3/middleware/recover"
Expand All @@ -25,10 +24,6 @@ func main() {
}

func Setup() *fiber.App {
if err := env.Parse(&common.EnvironmentConfig); err != nil {
panic(err)
}

methods := append(fiber.DefaultMethods, "QUERY") //nolint:gocritic // We want a new slice here

app := fiber.New(fiber.Config{
Expand Down
2 changes: 0 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ type TestCase struct {
}

func init() {
_ = os.Setenv("ENVIRONMENT", "test")

// Setup the app as it is done in the main function
app = Setup()
}
Expand Down
Loading