Skip to content

Commit

Permalink
Merge pull request #59 from owenrumney/add-freebsd-build
Browse files Browse the repository at this point in the history
feat: support freebsd
  • Loading branch information
owenrumney committed May 10, 2022
2 parents 1e667c3 + d2f9912 commit c0be93f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ builds:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64


checksum:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ image:

.PHONY: quality
quality:
which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.43.0
which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.46.0
golangci-lint run --timeout 3m --verbose
3 changes: 3 additions & 0 deletions internal/pkg/scan/git_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ func (s *gitScanner) Scan() ([]match.Transgression, error) {
client, err = git.Clone(memory.NewStorage(), fs, &git.CloneOptions{
URL: s.workingDirectory,
})
if err != nil {
return nil, err
}

log.Info("Clone complete...")
} else {
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/scan/signals_unix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build linux || bsd || darwin
// +build linux bsd darwin
//go:build linux || bsd || darwin || freebsd
// +build linux bsd darwin freebsd

package scan

Expand Down

0 comments on commit c0be93f

Please sign in to comment.