brew-pkg icon indicating copy to clipboard operation
brew-pkg copied to clipboard

Package local formula

Open W4RH4WK opened this issue 10 years ago • 4 comments

I have installed encfs using a local formula with the following command:

$ brew install contrib/encfs.rb

but I am not able to package this using brew-pkg:

$ brew pkg --with-deps contrib/encfs.rb
==> Creating package staging root using Homebrew prefix /usr/local
Error: No available formula with the name "encfs"

W4RH4WK avatar Oct 28 '15 10:10 W4RH4WK

Have you tried just brew pkg --with-deps encfs? If I install encfs from the existing brew repo this command works. I should think it would work the same way even if it was installed from a local formula.

timsutton avatar Oct 28 '15 11:10 timsutton

Yes, I have tried this but it didn't work either. I get the same error in this case. Seems like brew searches for a formula in its repository / taps (?).

$ brew pkg --with-deps encfs
Error: No available formula with the name "encfs"

I have created a tap for the moment, which works fine.

W4RH4WK avatar Oct 28 '15 13:10 W4RH4WK

I can see the use case for this, so if you feel like digging into what changes would be needed for local formulae to also work, that would be great!

timsutton avatar Oct 28 '15 14:10 timsutton

I'll let you know if I come up with something, but no promises.

W4RH4WK avatar Oct 28 '15 18:10 W4RH4WK