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

crfsuite 0.12 (new formula) #122035

Closed
wants to merge 1 commit into from

Conversation

alebcay
Copy link
Member

@alebcay alebcay commented Feb 1, 2023

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@BrewTestBot BrewTestBot added the new formula PR adds a new formula to Homebrew/homebrew-core label Feb 1, 2023
@alebcay alebcay force-pushed the crfsuite-new-formula branch from f3755c3 to 1d27810 Compare February 1, 2023 06:29
dawidd6
dawidd6 previously approved these changes Feb 1, 2023
@chenrui333 chenrui333 added the ready to merge PR can be merged once CI is green label Feb 1, 2023
chenrui333
chenrui333 previously approved these changes Feb 1, 2023
class Crfsuite < Formula
desc "Fast implementation of conditional random fields"
homepage "https://www.chokkan.org/software/crfsuite/"
url "https://github.com/downloads/chokkan/crfsuite/crfsuite-0.12.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

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

Wow, I didn't know there's such links like https://github.com/downloads/...

I'd suggest switching it to the format we usually use:

Suggested change
url "https://github.com/downloads/chokkan/crfsuite/crfsuite-0.12.tar.gz"
url "https://github.com/chokkan/crfsuite/archive/refs/tags/0.12.tar.gz"

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. This is borrowing from an existing formula in the homebrew-science (legacy) tap.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, these two tarballs don't have the same contents. The original one I had includes a pre-generated configure file. The /archive tarball doesn't have it.

It seems there are other formulae in core tap that use this kind of link, e.g. apktool, jadx.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, wow, old stuff!
TIL there was a downloads API that was replaced with releases like 10 years ago.

Source: https://stackoverflow.com/questions/63292793/how-can-i-upload-files-to-https-github-com-downloads-user-repo

Formula/crfsuite.rb Outdated Show resolved Hide resolved
@alebcay alebcay dismissed stale reviews from chenrui333 and dawidd6 via cf5339c February 1, 2023 21:06
@alebcay alebcay force-pushed the crfsuite-new-formula branch from 1d27810 to cf5339c Compare February 1, 2023 21:06
@alebcay alebcay force-pushed the crfsuite-new-formula branch from cf5339c to faf6f8a Compare February 1, 2023 21:45
@BrewTestBot
Copy link
Member

:shipit: @chenrui333 has triggered a merge.

clason pushed a commit to clason/homebrew-core that referenced this pull request Feb 2, 2023
Closes Homebrew#122035.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new formula PR adds a new formula to Homebrew/homebrew-core outdated PR was locked due to age ready to merge PR can be merged once CI is green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants