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

Various build improvements #14032

Merged
merged 2 commits into from
Mar 9, 2017
Merged

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Mar 9, 2017

See commit messages.


This change is Reviewable

1. `brew audit` wants `require 'language/go'` gone.
2. Specifying the tag AND the ref is redundant.
@tamird
Copy link
Contributor

tamird commented Mar 9, 2017

:lgtm:


Reviewed 1 of 1 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


build/cockroach.rb, line 8 at r1 (raw file):

  url "https://github.com/cockroachdb/cockroach.git",
      :tag => "beta-20170223",
      :revision => "4c8949513d287b92be1c167615398a2a53fe39da"

i think there was a reason for this. care to dig through the git log?

cc @mberhault


Comments from Reviewable

class Cockroach < Formula
desc "Distributed SQL database"
homepage "https://www.cockroachlabs.com"
url "https://github.com/cockroachdb/cockroach.git",
:tag => "beta-20170223",
:revision => "4c8949513d287b92be1c167615398a2a53fe39da"
:tag => "beta-20170223"
Copy link
Contributor

Choose a reason for hiding this comment

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

does this work?

@mberhault
Copy link
Contributor

dunno, I have no little to no experience with homebrew. I've never tried to install cockroach through it

@benesch
Copy link
Contributor Author

benesch commented Mar 9, 2017

@tamird @mberhault specifying both tag and revision dates back to Peter's commit to add the Homebrew recipe, so I assume it's just historical happenstance. Homebrew is perfectly happy with just a tag; it uses the revision, if specified alongside a tag, to verify the revision pointed to by the tag is what the formula expects (source).

This functionality exists to prevent upstream Git committers from force-pushing a tag and changing the code a core Homebrew formula points at; since we control both the repository and the formula, I don't think we need the extra verification. If our tags are force-pushed we've got other problems. Plus I'm hoping to eventually switch over to tarball sources per #14031.

@benesch benesch merged commit 079d562 into cockroachdb:master Mar 9, 2017
@benesch benesch deleted the build-improvements branch March 9, 2017 18:55
@benesch benesch mentioned this pull request Mar 30, 2017
3 tasks
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

Successfully merging this pull request may close these issues.

3 participants