Skip to content

Add new formula, 1password-cli, version 0.9.4#41

Draft
chances wants to merge 1 commit into
athrunsun:masterfrom
chances:1password-cli
Draft

Add new formula, 1password-cli, version 0.9.4#41
chances wants to merge 1 commit into
athrunsun:masterfrom
chances:1password-cli

Conversation

@chances

@chances chances commented Apr 8, 2020

Copy link
Copy Markdown

No description provided.

@chances

chances commented Apr 8, 2020

Copy link
Copy Markdown
Author

Testing errors out locally and I'm lost about how to fix it.

$ brew test 1password-cli --verbose --debug
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/athrunsun/homebrew-linuxbinary/Formula/1password-cli.rb
Error: 1password-cli: wrong number of arguments (given 1, expected 0)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:36:in `rescue in load_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:33:in `load_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:54:in `load_formula_from_path'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:136:in `load_file'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:126:in `klass'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:122:in `get_formula'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:332:in `factory'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formulary.rb:73:in `resolve'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cli/args.rb:98:in `block in resolved_formulae'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cli/args.rb:97:in `map'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/cli/args.rb:97:in `resolved_formulae'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/dev-cmd/test.rb:41:in `test'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'

@athrunsun Any ideas?

@athrunsun

athrunsun commented Apr 16, 2020

Copy link
Copy Markdown
Owner

@chances I don't think homebrew has a name method, I've seen that in homebrew-cask formula, but NOT in homebrew formula.

After I remove the name "1password-cli" line and rename the file to one-password-cli.rb, everything went well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants