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

minikube 0.26.1 (new formula) #27468

Closed
wants to merge 1 commit into from
Closed

minikube 0.26.1 (new formula) #27468

wants to merge 1 commit into from

Conversation

chases
Copy link

@chases chases commented May 4, 2018

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Continuation of #12189

@ilovezfs ilovezfs added the new formula PR adds a new formula to Homebrew/homebrew-core label May 4, 2018
class Minikube < Formula
desc "Tool that makes it easy to run Kubernetes locally"
homepage "https://kubernetes.io/docs/getting-started-guides/minikube/"
url "https://github.com/kubernetes/minikube.git",
Copy link
Member

Choose a reason for hiding this comment

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

Can we build from source archive? https://github.com/kubernetes/minikube/archive/v0.26.1.tar.gz

Copy link
Author

Choose a reason for hiding this comment

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

The only problem with that is the make script depends on the build directory having a valid git repository.

Copy link
Member

Choose a reason for hiding this comment

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

OK then

:tag => "v0.26.1",
:revision => "6ded2b647d1b1f62100c630bcfcc1363c631ce2d"

# Docker required for non-Linux builds
Copy link
Member

Choose a reason for hiding this comment

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

Homebrew is for macOS. Remove unless MacOS.version == Version::NULL and comment

Copy link
Author

Choose a reason for hiding this comment

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

This formula is meant to work on Linuxbrew as well, how is that normally handled?

Copy link
Member

Choose a reason for hiding this comment

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

Linuxbrew will handle the changes for Linux


# Docker required for non-Linux builds
depends_on "docker" => :build unless MacOS.version == Version::NULL

Copy link
Member

Choose a reason for hiding this comment

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

No blank line

end

test do
assert_match version.to_s, shell_output("#{bin}/minikube version 2>&1")
Copy link
Member

Choose a reason for hiding this comment

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

We need a test that exercises the some of the functionality of the app.

Copy link
Author

Choose a reason for hiding this comment

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

If you don't mind, would you point me to an example you'd like me to follow? Lots of the formulas I looked at do more or less exactly this.

Copy link
Member

Choose a reason for hiding this comment

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

Look at kube-aws or kubeless


cd repo_path do
system "make"
bin.install "out/minikube" => "minikube"
Copy link
Member

Choose a reason for hiding this comment

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

No doc, no man page, no other file to install?

repo_path.install Dir["*"]

cd repo_path do
system "make"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is running go get

@commitay
Copy link
Contributor

commitay commented May 9, 2018

Upstream has an open issue for creating a Homebrew formula.

we can create a real brew formula for minikube now that we no longer include (and therefore don't cross build) localkube with go-bindata

Currently localkube is still included but it has a PR open for it to be removed. kubernetes/minikube#2736

@stale
Copy link

stale bot commented May 30, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale No recent activity label May 30, 2018
@fxcoudert
Copy link
Member

Hi @chases, thanks for the pull request, we are going to close it for now. We would be happy to consider a revised formula that does not rely on go get (which is not allowed inside Homebrew core) and has a functional test.

@fxcoudert fxcoudert closed this May 30, 2018
@lock lock bot added the outdated PR was locked due to age label Jun 29, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new formula PR adds a new formula to Homebrew/homebrew-core outdated PR was locked due to age stale No recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants