Giter Site home page Giter Site logo

Comments (14)

squigg avatar squigg commented on July 24, 2024 1

It does indeed - I'll sort it out later today

from azure-queue-laravel.

squigg avatar squigg commented on July 24, 2024

Can you post the contents of your composer.json file? Seems like there is perhaps a conflict in there.

Particularly check for any constraints on "microsoft/azure-storage" in your composer.json and if present, remove them so that this package can install the desired version.

from azure-queue-laravel.

uxweb avatar uxweb commented on July 24, 2024

@squigg Thanks for answer! This are the contents of my composer.json file:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.0.0",
        "barryvdh/laravel-cors": "^0.9.3",
        "fideloper/proxy": "~3.3",
        "guzzlehttp/guzzle": "^6.3",
        "laracasts/flash": "^3.0",
        "laravel/framework": "5.5.*",
        "laravel/passport": "^3.0",
        "laravel/tinker": "~1.0",
        "league/flysystem-azure": "^1.0",
        "maatwebsite/excel": "^2.1",
        "microsoft/azure-storage": "~0.10.1",
        "overtrue/laravel-lang": "^3.0",
        "predis/predis": "^1.1",
        "spatie/laravel-permission": "^2.5",
        "spatie/laravel-sluggable": "^2.1",
        "webpatser/laravel-uuid": "^3.0"
    },
    "require-dev": {
        "appointer/swaggervel": "^2.1",
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~6.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories",
            "database/AudienceFilterFactory.php"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    }
}

from azure-queue-laravel.

squigg avatar squigg commented on July 24, 2024

Hi

Please remove the line in your composer.json for "microsoft/azure-storage" and then retry.

If you are using the Microsoft package yourself directly in your code then you may need to make any changes necessary to use the later version.

Cheers

from azure-queue-laravel.

squigg avatar squigg commented on July 24, 2024

@uxweb did you get this sorted?

from azure-queue-laravel.

uxweb avatar uxweb commented on July 24, 2024

@squigg Thanks!

The issue is still happening after removing "microsoft/azure-storage": "~0.10.1", from the composer.json file.

Here is the output generated by composer when running composer require squigg/azure-queue-laravel

Using version ^5.5 for squigg/azure-queue-laravel
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - squigg/azure-queue-laravel v5.5.0 requires microsoft/azure-storage ~0.18.0 ->satisfiable by microsoft/azure-storage[v0.18.0].
    - squigg/azure-queue-laravel v5.5.1 requires microsoft/azure-storage ~0.18.0 ->satisfiable by microsoft/azure-storage[v0.18.0].
    - Conclusion: don't install microsoft/azure-storage v0.18.0
    - Installation request for squigg/azure-queue-laravel ^5.5 -> satisfiable by squigg/azure-queue-laravel[v5.5.0, v5.5.1].


Installation failed, reverting ./composer.json to its original content.

from azure-queue-laravel.

uxweb avatar uxweb commented on July 24, 2024

@squigg I had the "microsoft/azure-storage": "~0.10.1" package installed directly because I copied all your src package files within my project to make it work with that version of azure storage due to the issue related with installing your package using composer.

from azure-queue-laravel.

uxweb avatar uxweb commented on July 24, 2024

@squigg
I think this issue is related with the use of "league/flysystem-azure": "^1.0" in my project. This package requires microsoft/azure-storage: ~0.10.1 so maybe there is a conflict on versions.

from azure-queue-laravel.

squigg avatar squigg commented on July 24, 2024

@uxweb
Great spot, I agree that looks like the problem

There is already a PR open on the league/flysystem-azure repository for upgrading to 0.19.1. Until this gets merged, a temporary fix would be to alias the later version of the microsoft/azure-storage package to be compatible with the flysystem dependency in your composer.json:

"microsoft/azure-storage": "0.19.0 as 0.10.1"

As long as the API remains the same in this later version for flysystem (this appears to be the case based on the pending PR), this will allow you to install and use the package successfully.

from azure-queue-laravel.

judgej avatar judgej commented on July 24, 2024

In case it is relevant, when installing on L5.5 I get this:

Package microsoft/azure-storage is abandoned, you should avoid using it. Use microsoft/azure-storage-blob, microsoft/azure-storage-table, microsoft/azure-storage-queue, microsoft/azure-storage-file instead.

Does that mean you should not even be using microsoft/azure-storage anyway now? Does the 5.5 branch need an update?

from azure-queue-laravel.

squigg avatar squigg commented on July 24, 2024

@judgej Version 5.5.2 now tagged with the stable microsoft/azure-storage dependency

from azure-queue-laravel.

judgej avatar judgej commented on July 24, 2024

Awesome. All updated without any complaints from L5.5 or PHP 7.1. I'll not be starting to use this package until later in the week, but will let you know how it goes.

from azure-queue-laravel.

judgej avatar judgej commented on July 24, 2024

Just tried this on Laravel 5.6, and it is working for me beautifully. It was so smooth, I though that maybe I hadn't switched over from the database queue driver, but I had. Thank you.

from azure-queue-laravel.

judgej avatar judgej commented on July 24, 2024

Totally off-topic, but as you are using Azure stuff, you may be interested in this package I knocked up over the weekend to support an Azure File Storage share as a Laravel filesystem (it's a filesystem driver):

https://github.com/academe/laravel-azure-file-storage-driver

(I don't normally self-promote like that, but if you are doing Laravel+Azure, it's a missing piece you may find useful. But just delete this comment if I'm over-reaching.)

from azure-queue-laravel.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.