Brew update never updates my tap

I am hosting a tap, where I maintain my package for brew. However a simple brew update never installed the latest version. I always need to use brew reinstall konversation.

Why does it not work as I would expect?

because that’s what brew upgrade is for. In addition to that, if you compare the output of brew info konversation and brew info php for example you can see that it takes “cli” as the version. So you’ll need to manually specify a version and even then I’m not sure if it would take a change from rc1 to rc2 as something to update on.

Thank you for your quick answer!

How can I make brew detect the version number correctly? Is it required that my jar has to have the version number in its name?

If not which field do I need to set? I didn’t find this in the documentation.

If you put the version number in the name it might detect it. Otherwise you’ll have to use version "1.x.x" in the formula. You could use brew audit <formula> to check for errors in the formula by the way. I think it should also detect this one.

I added a version field and reinstalled the package. In brew info konversation is still the text “konversation: stable cli”.

can you run git -C $(brew --repo rekire/packages) pull? Just to make sure you have the latest data?

Some changes were missing, but no changes in my output.

$ git -C $(brew --repo rekire/packages) pull
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
   accda48..5782974  master     -> origin/master
Updating accda48..5782974
 Formula/konversation.rb | 1 +
 1 file changed, 1 insertion(+)
$ brew info konversation
konversation: stable cli
Konversation is a tool to generate rich and diversified responses to the user of a voice application.

/home/linuxbrew/.linuxbrew/Cellar/konversation/cli (4 files, 5.4MB) *
  Built from source on 2019-10-04 at 11:38:39

I don’t think it’s reading from your tap.

$ brew info rekire/packages/konversation
rekire/packages/konversation: stable 1.1.0-rc9
Konversation is a tool to generate rich and diversified responses to the user of a voice application.
Not installed

That is interesting. Now I recognized that the version “cli” is stored in which does not even exists. Maybe caching, however that this url is displayed is IMHO a bug.

With the “tap” in the package name the version number is display correctly. Maybe it now starts working.