Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message when both azure-storage-blob and azure-storage-queue installed #195

Open
KNejad opened this issue Aug 19, 2021 · 1 comment

Comments

@KNejad
Copy link

KNejad commented Aug 19, 2021

If you have both azure-storage-blob and azure-storage-queue installed, you get this warning message:

/usr/local/bundle/gems/azure-storage-blob-1.1.0/lib/azure/storage/blob/blob_service.rb:33: warning: already initialized constant Azure::Storage::StorageService
/usr/local/bundle/gems/azure-storage-queue-1.1.0/lib/azure/storage/queue/queue_service.rb:28: warning: previous definition of StorageService was here

I have version 1.1 installed but I tried with the latest and the same warning message appears

@abuche-corpiq
Copy link

I believe that the initialization of these constant should be changed to use the ||= operator. This would fix any combinations of multiple gems in a project.

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

No branches or pull requests

2 participants