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

Update perforce.rb, remove p4.rb #29180

Merged
merged 8 commits into from Jan 20, 2017
Merged

Update perforce.rb, remove p4.rb #29180

merged 8 commits into from Jan 20, 2017

Conversation

miccal
Copy link
Member

@miccal miccal commented Jan 19, 2017

@adidalal
Copy link
Contributor

Are these the same perforce product? I know there's a p4 cask also

@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

@adidalal p4v and p4merge are different, but p4 is the same as the original perforce Cask.

@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

Contents of helix-versioning-engine.tgz:

screen shot 2017-01-19 at 20 25 00

@larsxschneider
Copy link

Is it possible to disable the hash comparison for this cask? I know it is a bad idea as you can never know what binary you are dealing with... but Perforce changes these files all the time. Example from the past: Homebrew/legacy-homebrew#21799

@miccal miccal changed the title Update perforce.rb Update and rename perforce.rb to helix-versioning-engine.rb, remove p4.rb Jan 19, 2017
@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

@larsxschneider done, thanks for the information.

Ping @adidalal for final review.

@larsxschneider
Copy link

I think the name helix-versioning-engine could be confusion to people. It looks like as if the helix-versioning-engine.rb contains all products:
p4 (the client app) and p4d (the "daemon", server app).

p4d was available here: https://github.com/Homebrew/homebrew-binary/blob/master/perforce-server.rb

@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

I think the name helix-versioning-engine could be confusion to people.

Ping @vitorgalvao RE the token reference.

p4d was available here: https://github.com/Homebrew/homebrew-binary/blob/master/perforce-server.rb

The whole point of this is to migrate all formula from hombrew-binary - see https://github.com/Homebrew/homebrew-binary/pull/364.

@larsxschneider
Copy link

I would prefer 'perforce' as name but I am fine with 'helix-versioning-engine', too. Thanks a lot for working on this!

@larsxschneider
Copy link

The git core TravisCI builds are blocked because of the Perforce ... I am looking forward to your merged patch 😄
https://travis-ci.org/git/git/builds

@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

I would prefer 'perforce' as name but I am fine with 'helix-versioning-engine', too. Thanks a lot for working on this!

No problem.

@vitorgalvao
Copy link
Member

I’m fine with either name. Since this is binary-only, the token reference doesn’t apply, but it does seem like users might expect p4 or perforce instead of helix-versioning-engine.

@miccal
Copy link
Member Author

miccal commented Jan 19, 2017

I think perforce might be better.

Thanks @vitorgalvao.

@miccal miccal changed the title Update and rename perforce.rb to helix-versioning-engine.rb, remove p4.rb Update perforce.rb, remove p4.rb Jan 19, 2017
@adidalal
Copy link
Contributor

Let's also add in a json entry for the redirect. Otherwise looks good

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Let's also add in a json entry for the redirect. Otherwise looks good

Yes, I will once https://github.com/Homebrew/homebrew-binary/pull/364 is merged.

Thanks @adidalal.

@adidalal
Copy link
Contributor

Just to clarify, I meant p4 -> perforce (both Casks, but p4 is being renamed? now, so it makes sense to have that redirect there also)

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Just to clarify, I meant p4 -> perforce (both Casks, but p4 is being renamed? now, so it makes sense to have that redirect there also)

Yes, I will fix it all, no problem.

@miccal miccal closed this Jan 20, 2017
@miccal miccal reopened this Jan 20, 2017
@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Closed by mistake.

@adidalal
Copy link
Contributor

Not sure why Travis is lagging but LGTM from looking at the cask

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Thanks @adidalal - there are only three remaining in homebrew-binary, namely eventstore.rb, mpress.rb and subgit.rb, which seem quite a bit more complicated than those I have already done.

I may need some help with those ones.

@adidalal
Copy link
Contributor

Just double check with @MikeMcQuaid about usage stats for those before putting in significant effort. All in all though, fantastic work!

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Thanks @adidalal - I am pretty sure @MikeMcQuaid has already removed a fair few based on the analytics statistics, so those that are left are used.

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Well, the homebrew-binary formula for mpress is not working - when I run brew test mpress the output is:

-bash-4.4.5- /Users/raesy [> brew test mpress
Testing homebrew/binary/mpress
==> Using the sandbox
==> /usr/local/Cellar/mpress/1.21_1/bin/mpress
Error: homebrew/binary/mpress: failed
<1> expected but was
<22>.
-bash-4.4.5- /Users/raesy [>

and running mpress --version outputs nothing, so I cannot test a Cask install via a comparison with a homebrew-binary install.

Thoughts @MikeMcQuaid?

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

There is also a problem with the homebrew-binary formula for subgit - I modified the formula to use the latest version (3.2.3 instead of 3.2.0) and update the download url, but there is no test with this formula, and running any command (for example subgit --version) returns Unable to find any JVMs matching version "(null)". and request that I install Java (which I do not really want to do), so I cannot test a Cask install via a comparison with a homebrew-binary install on subgit either.

@miccal miccal merged commit ae8d73b into master Jan 20, 2017
@miccal miccal deleted the miccal-perforce branch January 20, 2017 07:11
@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

And finally, I have no idea how to create a Cask for eventstore, it is beyond my skills, sorry.

I understand how the formula works, but have no idea how to translate what it does to a Cask.

@MikeMcQuaid
Copy link
Member

You've done a great job @miccal, well done.

@miccal
Copy link
Member Author

miccal commented Jan 20, 2017

Update: subgit was actually quite straight-forward once I played around with it. Added here.

larsxschneider added a commit to larsxschneider/git that referenced this pull request Jan 21, 2017
The `perforce` and `perforce-server` package were moved from brew [1][2]
to cask [3]. Teach TravisCI the new location.

Perforce updates their binaries without version bumps. That made the
brew install (legitimately!) fail due to checksum mismatches. The
workaround is not necessary anymore as Cask [4] allows to disable the
checksum test for individual formulas.

[1] https://github.com/Homebrew/homebrew-binary/commit/1394e42de04d07445f82f9512627e864ff4ca4c6
[2] https://github.com/Homebrew/homebrew-binary/commit/f8da22d6b8dbcfcfdb2dfa9ac1a5e5d8e05aac2b
[3] Homebrew/homebrew-cask#29180
[4] https://caskroom.github.io/

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
@larsxschneider
Copy link

Everything works perfectly! Thank you!

fengguang pushed a commit to 0day-ci/git that referenced this pull request Jan 21, 2017
The `perforce` and `perforce-server` package were moved from brew [1][2]
to cask [3]. Teach TravisCI the new location.

Perforce updates their binaries without version bumps. That made the
brew install (legitimately!) fail due to checksum mismatches. The
workaround is not necessary anymore as Cask [4] allows to disable the
checksum test for individual formulas.

[1] https://github.com/Homebrew/homebrew-binary/commit/1394e42de04d07445f82f9512627e864ff4ca4c6
[2] https://github.com/Homebrew/homebrew-binary/commit/f8da22d6b8dbcfcfdb2dfa9ac1a5e5d8e05aac2b
[3] Homebrew/homebrew-cask#29180
[4] https://caskroom.github.io/

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
larsxschneider added a commit to larsxschneider/git that referenced this pull request Jan 22, 2017
The `perforce` and `perforce-server` package were moved from brew [1][2]
to cask [3]. Teach TravisCI the new location.

Perforce updates their binaries without version bumps. That made the
brew install (legitimately!) fail due to checksum mismatches. The
workaround is not necessary anymore as Cask [4] allows to disable the
checksum test for individual formulas.

[1] https://github.com/Homebrew/homebrew-binary/commit/1394e42de04d07445f82f9512627e864ff4ca4c6
[2] https://github.com/Homebrew/homebrew-binary/commit/f8da22d6b8dbcfcfdb2dfa9ac1a5e5d8e05aac2b
[3] Homebrew/homebrew-cask#29180
[4] https://caskroom.github.io/

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
gitster pushed a commit to git/git that referenced this pull request Jan 24, 2017
The `perforce` and `perforce-server` package were moved from brew [1][2]
to cask [3]. Teach TravisCI the new location.

Perforce updates their binaries without version bumps. That made the
brew install (legitimately!) fail due to checksum mismatches. The
workaround is not necessary anymore as Cask [4] allows to disable the
checksum test for individual formulas.

[1] https://github.com/Homebrew/homebrew-binary/commit/1394e42de04d07445f82f9512627e864ff4ca4c6
[2] https://github.com/Homebrew/homebrew-binary/commit/f8da22d6b8dbcfcfdb2dfa9ac1a5e5d8e05aac2b
[3] Homebrew/homebrew-cask#29180
[4] https://caskroom.github.io/

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
szeder pushed a commit to szeder/git-cooking-topics-for-travis-ci that referenced this pull request Feb 28, 2018
The `perforce` and `perforce-server` package were moved from brew [1][2]
to cask [3]. Teach TravisCI the new location.

Perforce updates their binaries without version bumps. That made the
brew install (legitimately!) fail due to checksum mismatches. The
workaround is not necessary anymore as Cask [4] allows to disable the
checksum test for individual formulas.

[1] https://github.com/Homebrew/homebrew-binary/commit/1394e42de04d07445f82f9512627e864ff4ca4c6
[2] https://github.com/Homebrew/homebrew-binary/commit/f8da22d6b8dbcfcfdb2dfa9ac1a5e5d8e05aac2b
[3] Homebrew/homebrew-cask#29180
[4] https://caskroom.github.io/

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
@Homebrew Homebrew locked and limited conversation to collaborators May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants