Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendorize go-licenser #13211

Closed
wants to merge 5 commits into from
Closed

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Aug 9, 2019

Current master is breaking builds, vendorize previous version.

Add mage helper for go get encouraging the use of vendorized dependencies.

@jsoriano jsoriano requested a review from a team as a code owner August 9, 2019 10:22
@jsoriano jsoriano self-assigned this Aug 9, 2019
@jsoriano jsoriano force-pushed the go-licenser-vendor branch from 6b36962 to 5d8a774 Compare August 9, 2019 10:23
@jsoriano jsoriano force-pushed the go-licenser-vendor branch from 5d8a774 to 972974a Compare August 9, 2019 10:25
@jsoriano
Copy link
Member Author

jsoriano commented Aug 9, 2019

jenkins, test this again please

}

return nil
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better, yes. But I guess this is out of the scope of this PR?

We'd have to discuss where this package lives so it can be reused by the different projects.

Copy link

@urso urso Aug 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with having it in the beats repo only for now. No worries about a little code duplication between go-txfile and beats.

@@ -132,14 +133,14 @@ check: check-headers python-env prepare-tests ## @build Checks project and sourc
.PHONY: $(.OVER)check-headers
$(.OVER)check-headers:
ifndef CHECK_HEADERS_DISABLED
@go get -u github.com/elastic/go-licenser
@go get $(GO_LICENSER_REPO)
@go-licenser -d -license ${LICENSE}
endif
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's a little out of scope, but constant dripping wears away the stone. Can we move check-headers to mage? Mage should also be able to get dependencies.

@jsoriano
Copy link
Member Author

jsoriano commented Aug 9, 2019

@urso I have opened another PR with the proposed changes #13215
It copies the gotool wrapper from go-txtfile and implements go get and go-licenser. And uses both to move check-headers and add-headers to mage.

@jsoriano
Copy link
Member Author

Closing this as in principle we will go in the line of #13215

@jsoriano jsoriano closed this Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants