Skip to content

Commit

Permalink
Use container for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
quite committed Aug 5, 2024
1 parent d2e206b commit da2f359
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 766 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ run: fruktsam
./fruktsam
git restore reversecache

.PHONY: lint
lint:
make -C gotools golangci-lint
./gotools/golangci-lint run

deploy-dev: run
rsync -aP --chmod=ugo=rX dist/ lublin.se:/home/frukt/fruktsam/dev/

Expand All @@ -21,3 +16,14 @@ simple-run: fruktsam

simple-deploy-dev: simple-run
rsync -aP --chmod=ugo=rX dist/ lublin.se:/home/frukt/fruktsam/dev/

golangci_version=v1.59.1
golangci_cachedir=$(HOME)/.cache/golangci-lint-$(golangci_version)
.PHONY: lint
lint:
mkdir -p $(golangci_cachedir)
podman run --rm -it \
-v $$(pwd):/src -w /src \
-v $(golangci_cachedir):/root/.cache \
docker.io/golangci/golangci-lint:$(golangci_version)-alpine \
golangci-lint run
7 changes: 0 additions & 7 deletions gotools/Makefile

This file was deleted.

189 changes: 0 additions & 189 deletions gotools/go.mod

This file was deleted.

Loading

0 comments on commit da2f359

Please sign in to comment.