-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
bats-core 1.0.1 (new formula) #28977
Conversation
9a0652d
to
41e035f
Compare
Maybe alias |
@SMillerDev Thanks. Could you check my renaming of the original bats? I'm unsure if I need to change the file content also. |
@kenden Jenkins says you do 😉. Also, by convention the versioned formula would be called |
e87db7e
to
bb50b91
Compare
[email protected] cannot have:
So, I suggest renaming bats to [email protected], |
Formula/bats-core.rb
Outdated
bottle :unneeded | ||
|
||
conflicts_with "[email protected]", | ||
:because => "[email protected] and bats-core install a `bats` executable" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "both install a bats
executable" is slightly shorter, and is what we use elsewhere for this type of conflict 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, there is no bats formula to conflict with any more, so I removed the block
We probably don't need the @ formula at all. |
bb50b91
to
e2faabb
Compare
I agree with @ilovezfs -- unmaintained project + new, maintained fork that's compatible suggests removal and aliasing to me. |
e2faabb
to
6a2ac1b
Compare
@woodruffw I removed the old |
formula_renames.json too |
6a2ac1b
to
c94cd91
Compare
@woodruffw, how does it get merged? |
After some investigation, I'm actually a bit concerned with just handling this as a rename. Based on sstephenson/bats#150, bats-core has not yet received an official nod from the original upstream, and despite sstephenson/bats#150 (comment), there is some anecdotal evidence that it is not: sobolevn/git-secret#203 For now I'd be more comfortable treating this just as a new formula, and leave the original CC @mislav @sstephenson for any thoughts! |
@ilovezfs I agree, that's what I wrote in the PR description originally. |
c94cd91
to
e539d0a
Compare
@ilovezfs @SMillerDev @woodruffw I reverted, keeping the original bats and just adding bats-core. |
Thanks! Sorry about the round-about 🙂
…On June 13, 2018 4:10:28 PM EDT, Quentin Nerden ***@***.***> wrote:
@ilovezfs @SMillerDev @woodruffw I reverted, keeping the original bats
and just adding bats-core.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Formula/bats.rb
Outdated
@@ -3,10 +3,11 @@ class Bats < Formula | |||
homepage "https://github.com/sstephenson/bats" | |||
url "https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz" | |||
sha256 "480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7" | |||
head "https://github.com/sstephenson/bats.git" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason to remove ability to install --HEAD ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-added it
desc "Bash Automated Testing System" | ||
homepage "https://github.com/bats-core/bats-core" | ||
url "https://github.com/bats-core/bats-core/archive/v1.0.1.tar.gz" | ||
sha256 "821626f1e5058a4f25a95722399b460942f27535186a815a279e518b503f8de7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add head
to support --HEAD
installs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonkarns I can, but CONTRIBUTING.md
says to run
$ brew audit --new-formula bats-core
which then breaks with:
bats-core:
* Formulae should not have a HEAD spec
Error: 1 problem in 1 formula
Trying anyway, maybe the jenkins config differs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, Jenkins does not like it for new Formulae. Removing head
from bats-core.
b5151e4
to
f27f255
Compare
ec7cae0
to
b98c050
Compare
@ilovezfs I'm glad it's merged.
Thanks! |
@kenden we squash PRs down to one commit per formula per PR in virtually all cases, and certainly always in new formula PRs. |
@ilovezfs It makes sense, but it didn't happen this time: |
@kenden I said one commit per formula ;) |
Good call. |
This is an updated version from closed PR #20073
(keeping the commit from @btamayo)
Now that bats-core has a stable release, it is time to create a formula for it.
I propose creating an alias
bats
and removing the existing formulabats
once
bats-core
has had a few more stable releases.brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?