Update module references in various files

Module references within 'go.mod', 'main.go', and various plugin files have been changed from 'github.com/wneessen/logranger' to 'src.neessen.cloud/wneessen/logranger'. This update is essential to align with the new source location and ensure code and plugins function as expected. The Dockerfile’s commands have also been updated accordingly.
This commit is contained in:
Winni Neessen 2024-02-08 14:32:29 +01:00
parent 79fbd4b7db
commit a20b6c64c6
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
7 changed files with 10 additions and 10 deletions

View file

@ -4,7 +4,7 @@
## Build first
FROM golang:alpine AS builder
RUN mkdir /builddir
RUN mkdir /builddithur
ADD cmd/ /builddir/cmd/
ADD template/ /builddir/template
ADD *.go /builddir/
@ -17,7 +17,7 @@ RUN go mod download
RUN go mod verify
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags \
'-w -s -extldflags "-static"' \
-o /builddir/logranger github.com/wneessen/logranger/cmd/server
-o /builddir/logranger src.neessen.cloud/wneessen/logranger/cmd/server
## Create scratch image
FROM scratch

View file

@ -11,7 +11,7 @@ import (
"path/filepath"
"syscall"
"github.com/wneessen/logranger"
"src.neessen.cloud/wneessen/logranger"
)
const (

2
go.mod
View file

@ -2,7 +2,7 @@
//
// SPDX-License-Identifier: MIT
module github.com/wneessen/logranger
module src.neessen.cloud/wneessen/logranger
go 1.21

View file

@ -4,4 +4,4 @@
package all
import _ "github.com/wneessen/logranger/plugins/actions/file" // register plugin
import _ "src.neessen.cloud/wneessen/logranger/plugins/actions/file" // register plugin

View file

@ -10,8 +10,8 @@ import (
"github.com/wneessen/go-parsesyslog"
"github.com/wneessen/logranger/plugins/actions"
"github.com/wneessen/logranger/template"
"src.neessen.cloud/wneessen/logranger/plugins/actions"
"src.neessen.cloud/wneessen/logranger/template"
)
// File represents a file action that can be performed on a log message.

View file

@ -5,7 +5,7 @@
package actions
import (
"github.com/wneessen/logranger/plugins"
"src.neessen.cloud/wneessen/logranger/plugins"
)
// Actions is a variable that represents a map of string keys to Action values. The keys are used to identify different actions, and the corresponding values are the functions that define

View file

@ -19,8 +19,8 @@ import (
_ "github.com/wneessen/go-parsesyslog/rfc3164"
_ "github.com/wneessen/go-parsesyslog/rfc5424"
"github.com/wneessen/logranger/plugins/actions"
_ "github.com/wneessen/logranger/plugins/actions/all"
"src.neessen.cloud/wneessen/logranger/plugins/actions"
_ "src.neessen.cloud/wneessen/logranger/plugins/actions/all"
)
const (