From a50ae7299c7d28a489f72c5b64d7e15cce825d1f Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 21 Mar 2024 15:39:31 +0100 Subject: [PATCH] Update project references to use GitHub repository All project references have been updated to point to the appropriate routes for the GitHub repository, replacing the previously used paths to src.neessen.cloud. This includes changes in README.md, Dockerfile, go mod packaging as well as in the source code where required. --- Dockerfile | 2 +- README.md | 15 +++++---------- cmd/server/main.go | 2 +- go.mod | 2 +- plugins/actions/all/file.go | 2 +- plugins/actions/file/file.go | 4 ++-- plugins/actions/registry.go | 2 +- server.go | 4 ++-- 8 files changed, 14 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index f804a61..2cd24f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 src.neessen.cloud/wneessen/logranger/cmd/server + -o /builddir/logranger github.com/wneessen/logranger/cmd/server ## Create scratch image FROM scratch diff --git a/README.md b/README.md index eb8f187..0ef4e5f 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ SPDX-License-Identifier: MIT # Logranger -[![GoDoc](https://godoc.org/src.neessen.cloud/wneessen/logranger?status.svg)](https://pkg.go.dev/src.neessen.cloud/wneessen/logranger) -[![Go Report Card](https://goreportcard.com/badge/src.neessen.cloud/wneessen/logranger)](https://goreportcard.com/report/src.neessen.cloud/wneessen/logranger) +[![GoDoc](https://godoc.org/github.com/wneessen/logranger?status.svg)](https://pkg.go.dev/github.com/wneessen/logranger) +[![Go Report Card](https://goreportcard.com/badge/github.com/wneessen/logranger)](https://goreportcard.com/report/github.com/wneessen/logranger) [![#logranger on Discord](https://img.shields.io/badge/Discord-%23logranger-blue.svg)](https://discord.gg/ysQXkaccXk) -[![REUSE status](https://api.reuse.software/badge/src.neessen.cloud/wneessen/logranger)](https://api.reuse.software/info/src.neessen.cloud/wneessen/logranger) +[![REUSE status](https://api.reuse.software/badge/github.com/wneessen/logranger)](https://api.reuse.software/info/github.com/wneessen/logranger) buy ma a coffee *Note:* Logranger is still WIP @@ -45,10 +45,5 @@ Logranger is released under the [MIT License](LICENSE). ## Support -If you encounter any problems while using Logranger, please [create an issue](https://src.neessen.cloud/wneessen/logranger/issues) in this -repository. We appreciate any feedback or suggestions for improving Logranger. - -## Mirror - -Please note that the repository on Github is just a mirror of -[https://src.neessen.cloud/wneessen/logranger](https://src.neessen.cloud/wneessen/logranger) for ease of access and reachability. \ No newline at end of file +If you encounter any problems while using Logranger, please [create an issue](https://github.com/wneessen/logranger/issues) in this +repository. We appreciate any feedback or suggestions for improving Logranger. \ No newline at end of file diff --git a/cmd/server/main.go b/cmd/server/main.go index 5c6e949..6f99ff3 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -11,7 +11,7 @@ import ( "path/filepath" "syscall" - "src.neessen.cloud/wneessen/logranger" + "github.com/wneessen/logranger" ) const ( diff --git a/go.mod b/go.mod index a9e5985..f8305ad 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: MIT -module src.neessen.cloud/wneessen/logranger +module github.com/wneessen/logranger go 1.21 diff --git a/plugins/actions/all/file.go b/plugins/actions/all/file.go index 12a13db..90acd3f 100644 --- a/plugins/actions/all/file.go +++ b/plugins/actions/all/file.go @@ -4,4 +4,4 @@ package all -import _ "src.neessen.cloud/wneessen/logranger/plugins/actions/file" // register plugin +import _ "github.com/wneessen/logranger/plugins/actions/file" // register plugin diff --git a/plugins/actions/file/file.go b/plugins/actions/file/file.go index 8fb32f0..7f8fae8 100644 --- a/plugins/actions/file/file.go +++ b/plugins/actions/file/file.go @@ -10,8 +10,8 @@ import ( "github.com/wneessen/go-parsesyslog" - "src.neessen.cloud/wneessen/logranger/plugins/actions" - "src.neessen.cloud/wneessen/logranger/template" + "github.com/wneessen/logranger/plugins/actions" + "github.com/wneessen/logranger/template" ) // File represents a file action that can be performed on a log message. diff --git a/plugins/actions/registry.go b/plugins/actions/registry.go index c1bdd33..a5b3f7f 100644 --- a/plugins/actions/registry.go +++ b/plugins/actions/registry.go @@ -5,7 +5,7 @@ package actions import ( - "src.neessen.cloud/wneessen/logranger/plugins" + "github.com/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 diff --git a/server.go b/server.go index cb86546..f6ed071 100644 --- a/server.go +++ b/server.go @@ -19,8 +19,8 @@ import ( _ "github.com/wneessen/go-parsesyslog/rfc3164" _ "github.com/wneessen/go-parsesyslog/rfc5424" - "src.neessen.cloud/wneessen/logranger/plugins/actions" - _ "src.neessen.cloud/wneessen/logranger/plugins/actions/all" + "github.com/wneessen/logranger/plugins/actions" + _ "github.com/wneessen/logranger/plugins/actions/all" ) const (