-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run make ci-check
, I get some errors on generated files:
make ci-check
GOOS=darwin /Library/Developer/CommandLineTools/usr/bin/make for-all CMD="go vet ./..."
GOOS=linux /Library/Developer/CommandLineTools/usr/bin/make for-all CMD="go vet ./..."
GOOS=windows /Library/Developer/CommandLineTools/usr/bin/make for-all CMD="go vet ./..."
golangci-lint run ./...
addlicense FAILED => add License errors:
./testutil/operator_builder.go
./testutil/pipeline.go
./testutil/database.go
./testutil/operator.go
Use 'make add-license' to fix this.
make: *** [check-license] Error 1
@tigrannajaryan Is it an acceptable approach to exclude these files from the license check?
if want ignore testutil/* |
I think that this PR should include making all the license checks pass, so we should include the change here. Do you mind adding? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to figure out how to make use of the tooling packages without including them in the module file.
github.com/golangci/golangci-lint v1.37.1 // indirect | ||
github.com/google/addlicense v0.0.0-20200906110928-a0294312aa76 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to include these in the module, and believe we should try not to.
Neither the collector or collector-contrib repos have needed these in go.mod
.
@@ -1,144 +1,666 @@ | |||
4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a h1:wFEQiK85fRsEVF0CRrPAos5LoAryUsIX1kPW/WrIqFw= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot of extras that I can't reconcile. Can you try regenerating this after addressing the go.mod
comment?
@djaglowski Yes, we normally exclude generated files from license checks. |
resolved #39