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

Brew installation builds from source #1

Closed
johananl opened this issue Sep 7, 2018 · 5 comments
Closed

Brew installation builds from source #1

johananl opened this issue Sep 7, 2018 · 5 comments

Comments

@johananl
Copy link
Contributor

johananl commented Sep 7, 2018

Hi,

Using the current config, running brew install clisso triggers a compilation from source.
This is problematic on a few levels:

  1. It automatically installs Golang on the target machine, which takes time and space.
  2. It takes a long time to complete since dep ensure is very slow.
  3. It doesn't guarantee consistency.

Can't we have Homebrew install the pre-compiled binary from Github?

@johananl johananl assigned ghost Sep 7, 2018
@ghost
Copy link

ghost commented Sep 7, 2018 via email

@johananl
Copy link
Contributor Author

johananl commented Sep 7, 2018

The main reason I've chosen Go for Clisso and not Python or Java is so that we'll have self-contained binaries which can be used as-is. Forcing the user to install Go just to use Clisso is problematic in my opinion (and could also break the dev environment for some people if they develop in Go and did not mean to upgrade it to the latest version...).

I don't know anything about Homebrew, but it doesn't make sense to me we can't simply use a binary. Can you maybe look at how this is done for kubectl? https://github.com/Homebrew/homebrew-core/blob/master/Formula/kubernetes-cli.rb
Are they building k8s from source here...? Not sure.

@johananl
Copy link
Contributor Author

johananl commented Sep 7, 2018

Huh, seems like the do compile it on the target machine.
Then... I guess it would be safer to start committing the vendor directory on Clisso. Otherwise there is no guarantee the build will work since we are running dep ensure every time, which could lead to different results.

@ghost
Copy link

ghost commented Sep 7, 2018 via email

@ghost
Copy link

ghost commented Sep 9, 2018

@johananl guess that can be closed

@ghost ghost closed this as completed Sep 9, 2018
This issue was closed.
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

1 participant