Skip to content

Commit

Permalink
chore: rename main directory from "pkg" to "src"
Browse files Browse the repository at this point in the history
  • Loading branch information
deponian committed Nov 24, 2024
1 parent f1eb167 commit 6e9811e
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,27 @@ help:
## tidy: format code and tidy modfile
.PHONY: tidy
tidy:
go fmt ./pkg
go fmt ./src
go mod tidy -v

## audit: run quality control checks
.PHONY: audit
audit:
go mod verify
go vet ./pkg
go run honnef.co/go/tools/cmd/staticcheck@latest -checks=all,-ST1000,-U1000 ./pkg
go run golang.org/x/vuln/cmd/govulncheck@latest ./pkg
go vet ./src
go run honnef.co/go/tools/cmd/staticcheck@latest -checks=all,-ST1000,-U1000 ./src
go run golang.org/x/vuln/cmd/govulncheck@latest ./src

## test: run all tests
.PHONY: test
test:
rm -rf pkg/builtins
rm -rf pkg/themes
cp -r builtins pkg/
cp -r themes pkg/
go test -race -coverprofile=coverage.out ./pkg
rm -rf pkg/builtins
rm -rf pkg/themes
rm -rf src/builtins
rm -rf src/themes
cp -r builtins src/
cp -r themes src/
go test -race -coverprofile=coverage.out ./src
rm -rf src/builtins
rm -rf src/themes

## coverage-func: run all tests and display coverage with "-func"
.PHONY: coverage-func
Expand Down
2 changes: 1 addition & 1 deletion cmd/logalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/aaaton/golem/v4"
"github.com/aaaton/golem/v4/dicts/en"
logalize "github.com/deponian/logalize/pkg"
logalize "github.com/deponian/logalize/src"
"github.com/goccy/go-yaml"
"github.com/knadh/koanf/v2"
"github.com/spf13/cobra"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6e9811e

Please sign in to comment.