Skip to content

Commit db24859

Browse files
authored
Merge pull request #74 from sue445/feature/goimports
Check whether golangci-lint is installed
2 parents 53bb5fb + 0d16190 commit db24859

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ namespace :go do
4141

4242
desc "Run golangci-lint"
4343
task :lint do
44+
sh "which golangci-lint" do |ok, _|
45+
raise "golangci-lint isn't installed. See. https://golangci-lint.run/welcome/install/" unless ok
46+
end
4447
sh env_vars, "golangci-lint run"
4548
end
4649
end

0 commit comments

Comments
 (0)