Adam
Adam

Reputation: 29039

Why is package not updated by composer?

I have installed a Laravel application together with the admin menu voyager.

I wanted to update to new newest voyager version. The current version on GitHub is 1.0.11 and inside of composer.json I have

 "require": {
        "tcg/voyager": "^1.0"

After running composer update I noticed that there has been no update for the tcg/voyager package:

enter image description here

In the composer.lock file I found

"name": "tcg/voyager",
            "version": "v1.0.11",
            "source": {
                "type": "git",
                "url": "https://github.com/the-control-group/voyager.git",
                "reference": "919fcbb5c9a53d601b4b5eeb983e2a29a488e1cb"
            },

so everything looks like I have the newest version of the tcg/voyager package.

However, I clearly see that the MenuItemPolicy.php file differs from my local version. The latest change that has been committed 12 hours ago has not taken place in my local version. Why?

Upvotes: 0

Views: 69

Answers (1)

iainn
iainn

Reputation: 17417

There hasn't been a tag created since that commit, so your ^1.0 version constraint won't find it. If you want to use the head of the 1.0 branch, you can use something like 1.0.x@dev, but be aware that you will potentially pull in changes not considered stable by the package author.

Upvotes: 2

Related Questions