Skip to content

Why always generate a file named as tools.go? #2828

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

Closed
gyliu513 opened this issue Apr 13, 2020 · 2 comments
Closed

Why always generate a file named as tools.go? #2828

gyliu513 opened this issue Apr 13, 2020 · 2 comments
Milestone

Comments

@gyliu513
Copy link
Contributor

I can see after the code was generated by operator-sdk, there is always a file named as tools.go with content as follows:

// +build tools

// Place any runtime dependencies as imports in this file.
// Go modules will be forced to download and install them.
package tools

What is the use of this file? Can we remove it? Thanks.

@joelanford
Copy link
Member

This was added by #1001

We'll be removing this as part of the upcoming Kubebuilder integration.

@joelanford joelanford added this to the v1.0.0 milestone Apr 13, 2020
@camilamacedo86
Copy link
Contributor

Hi @joelanford,

could we not close this one since we are already scaffolding the new layout with operator-sdk init?

@estroz estroz closed this as completed Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants