{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/5976","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/5976/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/5976/comments","events_url":"https://api.github.com/repos/composer/composer/issues/5976/events","html_url":"https://github.com/composer/composer/issues/5976","id":196231640,"number":5976,"title":"Composer not notifying installs to Packagist","user":{"login":"tuwannu","id":921194,"avatar_url":"https://avatars.githubusercontent.com/u/921194?v=3","gravatar_id":"","url":"https://api.github.com/users/tuwannu","html_url":"https://github.com/tuwannu","followers_url":"https://api.github.com/users/tuwannu/followers","following_url":"https://api.github.com/users/tuwannu/following{/other_user}","gists_url":"https://api.github.com/users/tuwannu/gists{/gist_id}","starred_url":"https://api.github.com/users/tuwannu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuwannu/subscriptions","organizations_url":"https://api.github.com/users/tuwannu/orgs","repos_url":"https://api.github.com/users/tuwannu/repos","events_url":"https://api.github.com/users/tuwannu/events{/privacy}","received_events_url":"https://api.github.com/users/tuwannu/received_events","type":"User","site_admin":false},"labels":[{"id":66814887,"url":"https://api.github.com/repos/composer/composer/labels/Support","name":"Support","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-17T17:02:10Z","updated_at":"2016-12-18T10:48:24Z","closed_at":null,"body":"My `composer.json`:\r\n\r\nTried in a real project and had the same behavior. So I reproduced this issue in a blank folder without a `composer.json` for the sake of minimizing other factors.\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\r\n$ composer diagnose\r\nChecking platform settings: OK\r\nChecking git settings: OK\r\nChecking http connectivity to packagist: OK\r\nChecking https connectivity to packagist: OK\r\nChecking github.com oauth access: OK\r\nChecking disk free space: OK\r\nChecking pubkeys:\r\nTags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642\r\nDev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952\r\nOK\r\nChecking composer version: OK\r\n$\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\ncomposer clear-cache\r\ncomposer require maqe/laravel-sqs-fifo\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n$ composer clear cache\r\nClearing cache (cache-dir): /Users/unnawut/.composer/cache\r\nClearing cache (cache-files-dir): /Users/unnawut/.composer/cache/files\r\nClearing cache (cache-repo-dir): /Users/unnawut/.composer/cache/repo\r\nClearing cache (cache-vcs-dir): /Users/unnawut/.composer/cache/vcs\r\nAll caches cleared.\r\n$ \r\n```\r\n\r\nThen immediately ran this next command below:\r\n\r\n```\r\n$ composer require maqe/laravel-sqs-fifo\r\nUsing version ^0.1.0 for maqe/laravel-sqs-fifo\r\n./composer.json has been created\r\nLoading composer repositories with package information\r\nUpdating dependencies (including require-dev)\r\n  - Installing mtdowling/jmespath.php (2.4.0)\r\n    Downloading: 100%\r\n\r\n  - Installing psr/http-message (1.0.1)\r\n    Downloading: 100%\r\n\r\n  - Installing guzzlehttp/psr7 (1.3.1)\r\n    Downloading: 100%\r\n\r\n  - Installing guzzlehttp/promises (1.3.0)\r\n    Downloading: 100%\r\n\r\n  - Installing guzzlehttp/guzzle (6.2.2)\r\n    Downloading: 100%\r\n\r\n  - Installing aws/aws-sdk-php (3.20.7)\r\n    Downloading: 100%\r\n\r\n  - Installing paragonie/random_compat (v2.0.4)\r\n    Downloading: 100%\r\n\r\n  - Installing illuminate/contracts (v5.3.23)\r\n    Downloading: 100%\r\n\r\n  - Installing doctrine/inflector (v1.1.0)\r\n    Downloading: 100%\r\n\r\n  - Installing illuminate/support (v5.3.23)\r\n    Downloading: 100%\r\n\r\n  - Installing symfony/process (v3.1.8)\r\n    Downloading: 100%\r\n\r\n  - Installing psr/log (1.0.2)\r\n    Downloading: 100%\r\n\r\n  - Installing symfony/debug (v3.1.8)\r\n    Downloading: 100%\r\n\r\n  - Installing symfony/polyfill-mbstring (v1.3.0)\r\n    Downloading: 100%\r\n\r\n  - Installing symfony/translation (v3.2.1)\r\n    Downloading: 100%\r\n\r\n  - Installing nesbot/carbon (1.21.0)\r\n    Downloading: 100%\r\n\r\n  - Installing illuminate/container (v5.3.23)\r\n    Downloading: 100%\r\n\r\n  - Installing symfony/console (v3.1.8)\r\n    Downloading: 100%\r\n\r\n  - Installing illuminate/console (v5.3.23)\r\n    Downloading: 100%\r\n\r\n  - Installing illuminate/queue (v5.3.23)\r\n    Downloading: 100%\r\n\r\n  - Installing maqe/laravel-sqs-fifo (v0.1.0)\r\n    Downloading: 100%\r\n\r\naws/aws-sdk-php suggests installing aws/aws-php-sns-message-validator (To validate incoming SNS notifications)\r\naws/aws-sdk-php suggests installing doctrine/cache (To use the DoctrineCacheAdapter)\r\nparagonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)\r\nilluminate/support suggests installing illuminate/filesystem (Required to use the composer class (5.2.*).)\r\nilluminate/support suggests installing symfony/var-dumper (Required to use the dd function (3.1.*).)\r\nsymfony/translation suggests installing symfony/config ()\r\nsymfony/translation suggests installing symfony/yaml ()\r\nsymfony/console suggests installing symfony/event-dispatcher ()\r\nilluminate/console suggests installing mtdowling/cron-expression (Required to use scheduling component (~1.0).)\r\nilluminate/queue suggests installing illuminate/redis (Required to use the Redis queue driver (5.3.*).)\r\nilluminate/queue suggests installing pda/pheanstalk (Required to use the Beanstalk queue driver (~3.0).)\r\nWriting lock file\r\nGenerating autoload files\r\n$ \r\n```\r\n\r\nAnd I expected this to happen:\r\n\r\nNumber of installs at https://packagist.org/packages/maqe/laravel-sqs-fifo to increase.\r\n\r\nAdditionally, I have also tried a manual POST request to https://packagist.org/downloads/ with the following data:\r\n\r\n```json\r\n{\r\n\t\"downloads\": [\r\n\t\t{\"name\": \"maqe/laravel-sqs-fifo\", \"version\": \"0.1.0.0\"}\r\n\t]\r\n}\r\n```\r\n\r\nThe number increased +1 as expected when manually making POST request to https://packagist.org/downloads/, but not when cache is cleared and installing the package via composer from the same machine.\r\n\r\nAlso, this package has been installed a few times by me on my work machine, home machine, work network, home network, other team mates' machines, as well as a few AWS EC2 instances. None increased the number of installs. I wish I could also try other people's projects but I'm afraid I have no control on who installs when to track the number of installs effectively.\r\n\r\nHere is my `composer --version`:\r\n\r\n```\r\n$ composer --version\r\nComposer version 1.2.4 2016-12-06 22:00:51\r\n```"},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/267814573","html_url":"https://github.com/composer/composer/issues/5976#issuecomment-267814573","issue_url":"https://api.github.com/repos/composer/composer/issues/5976","id":267814573,"user":{"login":"Seldaek","id":183678,"avatar_url":"https://avatars.githubusercontent.com/u/183678?v=3","gravatar_id":"","url":"https://api.github.com/users/Seldaek","html_url":"https://github.com/Seldaek","followers_url":"https://api.github.com/users/Seldaek/followers","following_url":"https://api.github.com/users/Seldaek/following{/other_user}","gists_url":"https://api.github.com/users/Seldaek/gists{/gist_id}","starred_url":"https://api.github.com/users/Seldaek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seldaek/subscriptions","organizations_url":"https://api.github.com/users/Seldaek/orgs","repos_url":"https://api.github.com/users/Seldaek/repos","events_url":"https://api.github.com/users/Seldaek/events{/privacy}","received_events_url":"https://api.github.com/users/Seldaek/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T10:48:24Z","updated_at":"2016-12-18T10:48:24Z","body":"Then the only way I think would be to run composer from a source install \nand not the phar, so you can easily look into what happens in \nInstallationManager::notifyInstalls - you could check the result of the \nfile_get_contents call in there that is being @-suppressed (because we \ndon't want tracking failures if any to block the execution).\n"}}
{"actor":{"display_login":"Seldaek"}}