diff --git a/.gitignore b/.gitignore index 98de493..63116a4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ Session.vim # VSC .vscode +check-commit diff --git a/aspell/aspell.go b/aspell/aspell.go index 2404463..dbeaefa 100644 --- a/aspell/aspell.go +++ b/aspell/aspell.go @@ -9,7 +9,7 @@ import ( "sort" "strings" - "check-commit/match" + "github.com/haproxytech/check-commit/match" "github.com/fatih/camelcase" ) diff --git a/aspell_test.go b/aspell_test.go index 320811a..dfc2d38 100644 --- a/aspell_test.go +++ b/aspell_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "check-commit/aspell" + "github.com/haproxytech/check-commit/aspell" ) func Test_Aspell(t *testing.T) { diff --git a/check.go b/check.go index aef769b..100f7af 100644 --- a/check.go +++ b/check.go @@ -16,7 +16,7 @@ import ( "unicode" "unicode/utf8" - "check-commit/aspell" + "github.com/haproxytech/check-commit/aspell" "github.com/google/go-github/v56/github" @@ -245,7 +245,8 @@ func readGitEnvironment() (string, error) { return GITLAB, nil } else { - return "", fmt.Errorf("no suitable git environment variables found: %w", ErrGitEnvironment) + return LOCAL, nil + // return "", fmt.Errorf("no suitable git environment variables found: %w", ErrGitEnvironment) } } } diff --git a/go.mod b/go.mod index 63bd927..a0b9295 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module check-commit +module github.com/haproxytech/check-commit go 1.22