diff --git a/.woodpecker.yml b/.woodpecker.yml index 05e3843..af57a4c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -17,6 +17,7 @@ pipeline: image: golang commands: - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin + - go mod tidy - golangci-lint run - go build -o ecodash-x86 src/main/main.go - env GOOS=linux GOARCH=arm go build -o ecodash-arm src/main/main.go diff --git a/src/ecodash/config.go b/src/ecodash/config.go index e9010f0..b3de005 100644 --- a/src/ecodash/config.go +++ b/src/ecodash/config.go @@ -11,8 +11,7 @@ import ( "time" "github.com/gofiber/fiber/v2" - - // Needed to use sqlite3 databases + // Needed to use sqlite3 databases. _ "github.com/mattn/go-sqlite3" ) diff --git a/src/main/main.go b/src/main/main.go index c3abefa..4fcba7a 100644 --- a/src/main/main.go +++ b/src/main/main.go @@ -6,12 +6,11 @@ import ( "os" "time" + "git.massivebox.net/ecodash/ecodash/src/ecodash" + "git.massivebox.net/ecodash/ecodash/src/tools" "github.com/gofiber/fiber/v2" "github.com/gofiber/template/html" "github.com/robfig/cron/v3" - - "git.massivebox.net/ecodash/ecodash/src/ecodash" - "git.massivebox.net/ecodash/ecodash/src/tools" ) func main() {