Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Kobalt 0.633 (new formula) #49392

Closed
wants to merge 4 commits into from
Closed

Kobalt 0.633 (new formula) #49392

wants to merge 4 commits into from

Conversation

cbeust
Copy link
Contributor

@cbeust cbeust commented Feb 21, 2016

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

You can erase any parts of this template not applicable to your Pull Request.

New Formulae Submissions:

  • Does your submission pass
    brew audit --strict --online <formula> (where <formula> is the name of the formula you're submitting)?

I'm getting:

 * Stable: version 0.633 is redundant with version scanned from URL

I tried to remove the version but then I get another error. Can you help me fix this warning?

  • Have you built your formula locally prior to submission with brew install <formula>?

Changes to Homebrew's Core:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable? Here's an example if you'd like one.
  • Have you successfully ran brew tests with your changes locally?

Kobalt is a build system. The test creates a simple source file and a build file and then it calls Kobalt on it. The test asserts a .jar file gets produced.

Kobalt is a build system. The test creates a simple source file and a build file and then it calls Kobalt on it. The test asserts a .jar file gets produced.
@@ -0,0 +1,48 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this empty line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@bfontaine
Copy link
Contributor

I tried to remove the version but then I get another error. Can you help me fix this warning?

What was the other error?

@cbeust
Copy link
Contributor Author

cbeust commented Feb 21, 2016

I didn't see the error any more after removing the version, I just pushed a new commit that address the comments.

class Kobalt < Formula
desc "Build system"
homepage "http://beust.com/kobalt"
url "https://github.com/cbeust/kobalt/releases/download/0.633/kobalt-0.633.zip"
Copy link
Contributor

Choose a reason for hiding this comment

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

I just saw this URL: we need to build from source.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you saying that when someone installs Kobalt, you will build it from the source and then install the resulting binaries? (sorry if it's a silly question, I'm not very familiar with Homebrew's internals)

Copy link
Member

Choose a reason for hiding this comment

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

Yes. The exception we make is if this is Java code; it's OK for us to not build from source there because the "binaries" work cross-platform.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kobalt is written in Kotlin actually but same thing: the zip file contains a jar which is cross platform.

Copy link
Member

Choose a reason for hiding this comment

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

🆒

@cbeust
Copy link
Contributor Author

cbeust commented Feb 21, 2016

New changes are in, please take another look. Thanks!


system "#{bin}/kobaltw", "assemble"
output = "kobaltBuild/libs/test-1.0.jar"
assert File.exists?(output), "Couldn't find #{output}"
Copy link
Member

Choose a reason for hiding this comment

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

Use File.exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@cbeust
Copy link
Contributor Author

cbeust commented Feb 22, 2016

I see that brew --test verbose kobalt failed again but where can I see why?

And how come these tests pass on my machine?

@DomT4
Copy link
Member

DomT4 commented Feb 22, 2016

You passed on Jenkins. The failure was on the 10.9 Travis; the Travis machines often have connectivity problems so that may well be the root cause of failure on that:

***** WARNING Error: java.util.concurrent.ExecutionException: java.net.UnknownHostException: repo1.maven.org
***** WARNING Error: java.util.concurrent.ExecutionException: java.net.UnknownHostException: jcenter.bintray.com
*****
***** ERROR Couldn't resolve org.jetbrains.kotlin:kotlin-stdlib:1.0.0
*****
BUILD FAILED: 1
Error: kobalt: failed
Failed executing: /usr/local/Cellar/kobalt/0.633/bin/kobaltw assemble

@cbeust
Copy link
Contributor Author

cbeust commented Feb 22, 2016

@DomT4 Got it, thanks for the explanation. Any other outstanding items I should look at?

@DomT4
Copy link
Member

DomT4 commented Feb 22, 2016

If others are okay with the binary usage, we're pretty much good IMO.

@MikeMcQuaid
Copy link
Member

Thanks for your contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock!

@cbeust
Copy link
Contributor Author

cbeust commented Feb 23, 2016

@MikeMcQuaid and everyone else: thank you guys for the quick turnaround and making this process so seamless!

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants