-
Notifications
You must be signed in to change notification settings - Fork 101
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
Generation tools improvements #375
Conversation
somaritane
commented
Mar 18, 2021
•
edited
Loading
edited
- boilerplate.go.txt template is restored and handled by golic
- Local .golic.yaml used to override golic global settings
- apache2 license is specified explicitly instead of relying on default golic value
- controller-gen version is aligned with OperatorSDK 1.3.0
- tools are auto-installed with go install
- make help is default target
- go v1.16 is now required for local setup (TODO v1.16 code upgrade will be done in separate PR )
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.
@somaritane looks great 🦾 , please consider my suggestions
dcd9c9b
to
5f45684
Compare
5f45684
to
132e783
Compare
Makefile
Outdated
license: golic | ||
$(GOLIC) inject -c "2021 Absa Group Limited" | ||
license: | ||
$(call golic,--dry -t apache2) |
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.
Why is it dry?
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.
iirc it was suggested as precaution by @kuritka, so that make license
target only indicates changes but not writes to files.
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.
@somaritane , license target must modify files (if file is new inject license automatically). Don't know in which context we were talking about. Sorry if there was some misunderstandings caused by me.
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.
So --dry
should be removed here, correct?
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.
So
--dry
should be removed here, correct?
@ytsarev , yes should be removed
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.
👍 thanks for clarification @kuritka ! will amend.
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.
Makefile
Outdated
license: golic | ||
$(GOLIC) inject -c "2021 Absa Group Limited" | ||
license: | ||
$(call golic,--dry -t apache2) |
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.
@somaritane , license target must modify files (if file is new inject license automatically). Don't know in which context we were talking about. Sorry if there was some misunderstandings caused by me.
dc73a2e
to
378e227
Compare
Makefile
Outdated
license: golic | ||
$(GOLIC) inject -c "2021 Absa Group Limited" | ||
license: | ||
$(call golic,--dry -t apache2) |
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.
So --dry
should be removed here, correct?
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.
Please resolve the conflicts
- boilerplate.go.txt template is restored and handled by golic - Local .golic.yaml used to override golic global settings - apache2 license is specified explicitly instead of relying on default golic value - controller-gen version is aligned with OperatorSDK 1.3.0 - tools are auto-installed with go install - make help is default target - go v1.16 is now required for local setup (TODO v1.16 code upgrade will be done in separate PR )
066f601
to
8d3ad55
Compare
@ytsarev thanks for pointing, done |
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.
🦾 GTM