From 529a8b9ecec8a5c1172499b10a630706dfe68c8d Mon Sep 17 00:00:00 2001 From: Stepan Vrany Date: Mon, 19 Dec 2022 11:26:56 +0100 Subject: [PATCH] chore: migrate repository to the company --- .gitignore | 2 ++ .goreleaser.yaml | 34 ++++++++++++++++++++++++++++++++++ cmd/main.go | 4 ++-- go.mod | 2 +- internal/reloader/reloader.go | 6 +++--- pkg/config/config.go | 2 +- 6 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 1a94556..7b8032e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ main + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..f15b2c5 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,34 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + main: ./cmd/main.go +archives: + - replacements: + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + +# modelines, feel free to remove those if you don't want/use them: +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj diff --git a/cmd/main.go b/cmd/main.go index cb2cc2f..d8d4cc8 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -7,8 +7,8 @@ import ( "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/sqs" "github.com/coreos/go-systemd/dbus" - "github.com/vranystepan/unit-reloader/internal/reloader" - "github.com/vranystepan/unit-reloader/pkg/config" + "github.com/pipetail/unit-reloader/internal/reloader" + "github.com/pipetail/unit-reloader/pkg/config" ) func main() { diff --git a/go.mod b/go.mod index e4cbf77..37b7725 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/vranystepan/unit-reloader +module github.com/pipetail/unit-reloader go 1.19 diff --git a/internal/reloader/reloader.go b/internal/reloader/reloader.go index 9d29f73..cfe2444 100644 --- a/internal/reloader/reloader.go +++ b/internal/reloader/reloader.go @@ -7,9 +7,9 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/sqs" "github.com/coreos/go-systemd/dbus" - "github.com/vranystepan/unit-reloader/pkg/config" - dbusImpl "github.com/vranystepan/unit-reloader/pkg/dbus" - sqsImpl "github.com/vranystepan/unit-reloader/pkg/sqs" + "github.com/pipetail/unit-reloader/pkg/config" + dbusImpl "github.com/pipetail/unit-reloader/pkg/dbus" + sqsImpl "github.com/pipetail/unit-reloader/pkg/sqs" ) func Run(ctx context.Context, cfg *config.Config, sqsClient *sqs.SQS, dbusClient *dbus.Conn) { diff --git a/pkg/config/config.go b/pkg/config/config.go index 4845823..dcb4e0e 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" - "github.com/vranystepan/unit-reloader/pkg/util" + "github.com/pipetail/unit-reloader/pkg/util" ) type Config struct {