From 52975fd1a01c6436b08f2f1e9de0e5b3ae870bc2 Mon Sep 17 00:00:00 2001 From: lestrrat <49281+lestrrat@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:55:48 +0900 Subject: [PATCH] Fix lint (#96) * Tweak workflow * Run gofmt -w -s --- .github/workflows/lint.yml | 6 +++++- clib/link_dynamic.go | 1 + clib/link_static.go | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1bbfde3..31dd648 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,5 +1,9 @@ name: lint -on: [push] +on: + push: {} + pull_request: + branches: + - master jobs: golangci: name: lint diff --git a/clib/link_dynamic.go b/clib/link_dynamic.go index bf647a4..8b8986e 100644 --- a/clib/link_dynamic.go +++ b/clib/link_dynamic.go @@ -1,3 +1,4 @@ +//go:build !static_build // +build !static_build package clib diff --git a/clib/link_static.go b/clib/link_static.go index f55cf82..a7176de 100644 --- a/clib/link_static.go +++ b/clib/link_static.go @@ -1,3 +1,4 @@ +//go:build static_build // +build static_build package clib