From ee94f07cfd199e1fd4738e541dae35d3e957ff93 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Mon, 12 Sep 2022 14:25:57 -0500 Subject: [PATCH] Updating go version, dependency version, and module name --- .gitignore | 2 ++ Makefile | 13 ++++++++++--- go.mod | 6 +++--- go.sum | 2 -- main.go | 2 +- message/format.go | 4 ++-- message/part.go | 4 ++-- 7 files changed, 20 insertions(+), 13 deletions(-) delete mode 100644 go.sum diff --git a/.gitignore b/.gitignore index 0d3d6c2..30ef68a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ digestion +go.sum + diff --git a/Makefile b/Makefile index 325e7a9..538e433 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,20 @@ SHARE_DIR?=/usr/local/share INSTALL_DIR?=$(SHARE_DIR)/mail-filters +GO_FILES=$(shell find -name '*.go') +.PHONY: clean clean: - rm -rf digestion + rm -rf digestion go.sum -build: +digestion: $(GO_FILES) + go get -u go build -install: build +.PHONY: build +build: digestion + +.PHONY: install +install: digestion mkdir -m755 -p $(INSTALL_DIR) install -m755 digestion $(INSTALL_DIR)/digestion diff --git a/go.mod b/go.mod index 2576469..fa6462e 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module git.dominic-ricottone.com/digestion +module git.dominic-ricottone.com/~dricottone/digestion -go 1.18 +go 1.19 -require git.dominic-ricottone.com/textwrap v0.0.2 +require git.dominic-ricottone.com/~dricottone/textwrap v0.0.3 diff --git a/go.sum b/go.sum deleted file mode 100644 index 38d741c..0000000 --- a/go.sum +++ /dev/null @@ -1,2 +0,0 @@ -git.dominic-ricottone.com/textwrap v0.0.2 h1:BoCxezIxM2i/Mvs8gREB4XSLmQh+5DHmiEW/jiwdUbA= -git.dominic-ricottone.com/textwrap v0.0.2/go.mod h1:oMsi+AbzUET9rjr9bDbtRUhD+bUPNjWMCIEhsLK80ZA= diff --git a/main.go b/main.go index dd85b6b..844dc7d 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "regexp" "flag" - "git.dominic-ricottone.com/digestion/message" + "git.dominic-ricottone.com/~dricottone/digestion/message" ) const LINE_LENGTH = 80 diff --git a/message/format.go b/message/format.go index cf3c517..a571e0b 100644 --- a/message/format.go +++ b/message/format.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - textwrap "git.dominic-ricottone.com/textwrap/common" + textwrap "git.dominic-ricottone.com/~dricottone/textwrap/common" - "git.dominic-ricottone.com/digestion/decoder" + "git.dominic-ricottone.com/~dricottone/digestion/decoder" ) func (m *Message) determine_best_part() int { diff --git a/message/part.go b/message/part.go index 86f3947..9d5db53 100644 --- a/message/part.go +++ b/message/part.go @@ -1,8 +1,8 @@ package message import ( - "git.dominic-ricottone.com/digestion/decoder" - "git.dominic-ricottone.com/digestion/renderer" + "git.dominic-ricottone.com/~dricottone/digestion/decoder" + "git.dominic-ricottone.com/~dricottone/digestion/renderer" ) type MessagePart struct { -- 2.45.2