Skip to content

Commit 307d8b8

Browse files
committed
MAJOR: make application go install friendly
1 parent 57466a6 commit 307d8b8

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Session.vim
2020

2121
# VSC
2222
.vscode
23+
check-commit

aspell/aspell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sort"
1010
"strings"
1111

12-
"check-commit/match"
12+
"github.com/haproxytech/check-commit/match"
1313

1414
"github.com/fatih/camelcase"
1515
)

aspell_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"testing"
88

9-
"check-commit/aspell"
9+
"github.com/haproxytech/check-commit/aspell"
1010
)
1111

1212
func Test_Aspell(t *testing.T) {

check.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"unicode"
1717
"unicode/utf8"
1818

19-
"check-commit/aspell"
19+
"github.com/haproxytech/check-commit/aspell"
2020

2121
"github.com/google/go-github/v56/github"
2222

@@ -245,7 +245,8 @@ func readGitEnvironment() (string, error) {
245245

246246
return GITLAB, nil
247247
} else {
248-
return "", fmt.Errorf("no suitable git environment variables found: %w", ErrGitEnvironment)
248+
return LOCAL, nil
249+
// return "", fmt.Errorf("no suitable git environment variables found: %w", ErrGitEnvironment)
249250
}
250251
}
251252
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module check-commit
1+
module github.com/haproxytech/check-commit
22

33
go 1.22
44

0 commit comments

Comments
 (0)