caldera
caldera copied to clipboard
build failed if project name contains dashes
If your project name contain dashes in name (my-project) - build process will fail with error:
WARN [runner] Can't process result by nolint processor: can't filter issue result.Issue{FromLinter:"typecheck", Text:"expected ';', found '-'", Pos:token.Position{Filename:"doc.go", Offset:0, Line:2, Column:13}, LineRange:(*result.Range)(nil), HunkPos:0, SourceLines:[]string(nil), Replacement:(*result.Replacement)(nil)}: can't parse file doc.go: /home/logan/go/src/github.com/prudnitskiy/orca-none/doc.go:2:13: expected ';', found '-'
doc.go:2:13: expected ';', found '-' (typecheck)
package orca-none
^
doc.go:1: -: package ; expected orca (typecheck)
// Package orca-none provides documentation
Makefile:129: recipe for target 'lint' failed
make: *** [lint] Error 1
2019/05/14 19:31:53 Tests: exit status 2
build will pass with the same config but name without dashes.
go 1.11, ubuntu linux.