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
owenrumney authored May 10, 2022

Verified

This commit was signed with the committer’s verified signature.
masenf Masen Furer
2 parents 1e667c3 + d2f9912 commit c0be93f
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
@@ -16,8 +16,10 @@ builds:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64


checksum:
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
@@ -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 {
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

0 comments on commit c0be93f

Please sign in to comment.