From 12a9692c2e4cd8b2db5f785367f90a39c49fa741 Mon Sep 17 00:00:00 2001 From: Conor Date: Thu, 13 Apr 2023 20:56:03 +0100 Subject: [PATCH] Use consistent names for ConfigDN executable (always ConfigDN) --- .gitignore | 4 ++++ .goreleaser.yaml | 4 ++-- go.mod | 2 +- main.go | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 86c81ce..cb50629 100644 --- a/.gitignore +++ b/.gitignore @@ -109,3 +109,7 @@ pb_data/ pocketbase vendor/ .idea + +# Executables +ConfigDN +ConfigDN.* \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 47998d7..1e05176 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,7 +9,7 @@ before: builds: - id: build_cgo main: ./ - binary: configdn + binary: ConfigDN ldflags: - -s -w -X github.com/dBuidl/ConfigDN.Version={{ .Version }} env: @@ -21,7 +21,7 @@ builds: - id: build_noncgo main: ./ - binary: configdn + binary: ConfigDN ldflags: - -s -w -X github.com/dBuidl/ConfigDN.Version={{ .Version }} env: diff --git a/go.mod b/go.mod index 6e9563c..b84a771 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module liveconfig +module github.com/dBuidl/ConfigDN go 1.19 diff --git a/main.go b/main.go index e788955..d41d4d4 100644 --- a/main.go +++ b/main.go @@ -2,9 +2,9 @@ package main import ( "encoding/json" + "github.com/dBuidl/ConfigDN/ui" "github.com/labstack/echo/v5" "github.com/pocketbase/dbx" - "liveconfig/ui" "log" "net/http" "os" @@ -18,7 +18,7 @@ import ( "github.com/pocketbase/pocketbase/plugins/jsvm" "github.com/pocketbase/pocketbase/plugins/migratecmd" - _ "liveconfig/migrations" + _ "github.com/dBuidl/ConfigDN/migrations" ) func main() {