-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add to Homebrew #8
Comments
require "language/haskell"
class Brok < Formula
include Language::Haskell::Cabal
desc "Find broken links in text documents"
homepage "https://github.com/smallhadroncollider/brok"
url "https://github.com/smallhadroncollider/brok/archive/1.0.0.tar.gz"
sha256 "fa35be3068d6647a029c922c59a7107186cc9cb0d5f5156b72609f30c8704ad4"
depends_on "cabal-install" => :build
depends_on "ghc" => :build
depends_on "hpack" => :build
def install
system "hpack"
install_cabal_package
end
test do
(testpath/"test.md").write <<~EOS
Blah blah https://duckduckgo.com
EOS
expected = <<~EOS
*** Checking URLs ***
Fetching: https://duckduckgo.com
Fetching complete
*** Results ***
[test.md]
- OK (200): https://duckduckgo.com
EOS
assert_match expected, shell_output("#{bin}/brok --no-color test.md")
end
end |
You'll need to:
|
If you let me know when you've done that I can jump in on the PR conversation and help with any issues. |
@tjweir Would you be able to assist? |
Hey! I had done this process for |
Thanks! |
@kahlil29 Have you had a chance to look at this yet? |
I'm sorry, I didn't see this notification & forgot about this task. |
@kahlil29 No worries. Thanks! |
Sorry for the delay from my end with this issue. An update: Now the test is failing (seems like a minor escaping/text mismatch error) because running the
I'm debugging it to see if I can spot what's going wrong, haven't quite cracked it yet. |
Hmm, think it's the line clearing code ( |
Maybe just add those characters ( |
Yes that does seem to be the issue. |
Yeah, I seem to remember having similar issues before I added the |
@kahlil29 Did you work out what it was? Sorry, I've not had any time to work on things recently. |
I'd like to add brök to Homebrew, but I'll need someone else to submit it. I can provide the Formula that you need to submit. Please leave a comment if you'd like to help with this.
Thanks!
Update: Needs more stars before submitting
The text was updated successfully, but these errors were encountered: