{"action":"created","issue":{"url":"https://api.github.com/repos/composer/composer/issues/7438","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/7438/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/7438/comments","events_url":"https://api.github.com/repos/composer/composer/issues/7438/events","html_url":"https://github.com/composer/composer/issues/7438","id":337696676,"node_id":"MDU6SXNzdWUzMzc2OTY2NzY=","number":7438,"title":"Composer does not respect commit hash when looking at composer.json file from master branch","user":{"login":"Reifier","id":8810911,"node_id":"MDQ6VXNlcjg4MTA5MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8810911?v=4","gravatar_id":"","url":"https://api.github.com/users/Reifier","html_url":"https://github.com/Reifier","followers_url":"https://api.github.com/users/Reifier/followers","following_url":"https://api.github.com/users/Reifier/following{/other_user}","gists_url":"https://api.github.com/users/Reifier/gists{/gist_id}","starred_url":"https://api.github.com/users/Reifier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reifier/subscriptions","organizations_url":"https://api.github.com/users/Reifier/orgs","repos_url":"https://api.github.com/users/Reifier/repos","events_url":"https://api.github.com/users/Reifier/events{/privacy}","received_events_url":"https://api.github.com/users/Reifier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-02T23:33:09Z","updated_at":"2018-07-03T06:48:36Z","closed_at":"2018-07-03T06:28:07Z","author_association":"NONE","body":"My `composer.json`:\r\n\r\n```json\r\n{\r\n  \"license\": \"proprietary\",\r\n  \"require\": {\r\n    \"91carriage/phpunit-hhi\": \"5.7.3\",\r\n    \"aporat/store-receipt-validator\": \"1.4.1\",\r\n    \"aws/aws-sdk-php\": \"3.13.1\",\r\n    \"bradfeehan/desk-php\": \"dev-master#42662b030bb048f79f63e93ce8416c37b10cab13\",\r\n    \"brianium/paratest\": \"dev-master#bd24c0de0861f8e919d39edba09da672990b59d7\",\r\n    \"camspiers/porter-stemmer\": \"1.0.0\",\r\n    \"doctrine/inflector\": \"v1.0.1\",\r\n    \"donatj/phpuseragentparser\": \"0.7.0\",\r\n    \"elasticsearch/elasticsearch\": \"5.1.3\",\r\n    \"erusev/parsedown\": \" 1.1.4\",\r\n    \"facebook/graph-sdk\": \"5.6.2\",\r\n    \"facebook/hack-codegen\": \"2.2.1\",\r\n    \"facebook/xhp-lib\": \"2.3.2\",\r\n    \"fredemmott/type-assert\": \"1.1\",\r\n    \"friendsofsymfony/oauth2-php\": \"1.1.1\",\r\n    \"fustundag/tokenbucket\": \"0.0.1\",\r\n    \"google/apiclient\": \"~1.1\",\r\n    \"google/auth\": \"dev-fetch_auth_token_cache_http_handler_profiling#9c9d42cd958d7aa0a9fe58965b5584444dc66525 as 1.0.1\",\r\n    \"google/cloud\": \"dev-fetch_auth_token_cache_http_handler_0_41_0#6c2d4d65a3bedbcbc4ed6c6e44007497b0bba399 as 0.41.0\",\r\n    \"google/cloud-datastore\": \"1.0.2\",\r\n    \"google/gax\": \"dev-profiling#587aaf3749444b15996a3d15fe07d22e5de3158f as 0.25.0\",\r\n    \"google/proto-client\": \"0.25.0\",\r\n    \"google/protobuf\": \"dev-profiling_3_4_1#e8477d7350985d71db36e80925c50ffb37d3bdaa as 3.4.1\",\r\n    \"grpc/grpc\": \"dev-hhvm_profiling#fa89f9b80f02695cdc473d28e320ef04cd5065c4 as 1.6.0\",\r\n    \"guzzle/guzzle\": \"dev-master#e9c26dceebfe835f10764d86e2bd691830c57e43\",\r\n    \"johnkary/phpunit-speedtrap\": \"1.1.0\",\r\n    \"lcobucci/jwt\": \"3.1.0\",\r\n    \"maennchen/zipstream-php\": \"0.3.0\",\r\n    \"mcprohosting/cloudflare-4\": \"dev-master#cdd39458654e0db766f1bed5bb8c18e8f75d925f\",\r\n    \"mibe/feedwriter\": \"1.0.1\",\r\n    \"mockery/mockery\": \"dev-master#484a1189eed20263e7c12b3b6b82f390edeb1c75\",\r\n    \"monolog/monolog\": \"dev-master#7d20351afc85aa23c5795309c9984a1e93d81c27\",\r\n    \"moontoast/math\": \"1.1.2\",\r\n    \"nikic/fast-route\": \"1.0.1\",\r\n    \"payum/iso4217\": \"1.0.1\",\r\n    \"phpunit/phpunit\": \"5.7.27\",\r\n    \"prismic/php-sdk\": \"3.4.0\",\r\n    \"querypath/QueryPath\": \"3.0.5\",\r\n    \"ramsey/uuid\": \"3.6.0\",\r\n    \"recurly/recurly-client\": \"2.9.0\",\r\n    \"rollbar/rollbar\": \"0.18.2\",\r\n    \"sensiolabs/consul-php-sdk\": \"3.0.0\",\r\n    \"setasign/fpdf\": \"1.8.1\",\r\n    \"stripe/stripe-php\": \"3.13.0\",\r\n    \"symfony/yaml\": \"2.8.17\",\r\n    \"youshido/graphql\": \"1.5\"\r\n  },\r\n  \"prefer-stable\": true,\r\n  \"autoload\": {\r\n    \"classmap\": [\r\n      \"classes/\",\r\n      \"tests/\"\r\n    ],\r\n    \"files\": [\r\n      \"includes/functions_data.php\",\r\n      \"includes/functions_display.php\",\r\n      \"includes/functions_formatting.php\",\r\n      \"includes/functions_general.php\",\r\n      \"includes/functions_decl.php\",\r\n      \"includes/paging.php\"\r\n    ],\r\n  },\r\n  \"config\": {\r\n    \"bin-dir\": \"vendor/composer/bin\",\r\n    \"vendor-dir\": \"vendor/composer\",\r\n    \"discard-changes\": true\r\n  }\r\n}\r\n\r\n\r\n```\r\n\r\nOutput of `composer diagnose`:\r\n\r\n```\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\nComposer version: 1.6.5\r\nPHP version: 5.6.99-hhvm\r\nPHP binary path: /usr/local/bin/hhvm\r\n```\r\n\r\nWhen I run this command:\r\n\r\n```\r\nhhvm composer.phar update monolog/monolog\r\n```\r\n\r\nI get the following output:\r\n\r\n```\r\n\r\n  Problem 1\r\n    - monolog/monolog dev-master requires php ^7.1 -> your HHVM version does not satisfy that requirement.\r\n    - monolog/monolog dev-master requires php ^7.1 -> your HHVM version does not satisfy that requirement.\r\n    - Installation request for monolog/monolog dev-master#7d20351afc85aa23c5795309c9984a1e93d81c27 -> satisfiable by monolog/monolog[dev-master].\r\n```\r\n\r\nAnd I expected this to happen:\r\nI expect composer to use [this](https://github.com/Seldaek/monolog/blob/7d20351afc85aa23c5795309c9984a1e93d81c27/composer.json) version of the file and not giving me the error. "},"comment":{"url":"https://api.github.com/repos/composer/composer/issues/comments/402031190","html_url":"https://github.com/composer/composer/issues/7438#issuecomment-402031190","issue_url":"https://api.github.com/repos/composer/composer/issues/7438","id":402031190,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjAzMTE5MA==","user":{"login":"Reifier","id":8810911,"node_id":"MDQ6VXNlcjg4MTA5MTE=","avatar_url":"https://avatars3.githubusercontent.com/u/8810911?v=4","gravatar_id":"","url":"https://api.github.com/users/Reifier","html_url":"https://github.com/Reifier","followers_url":"https://api.github.com/users/Reifier/followers","following_url":"https://api.github.com/users/Reifier/following{/other_user}","gists_url":"https://api.github.com/users/Reifier/gists{/gist_id}","starred_url":"https://api.github.com/users/Reifier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Reifier/subscriptions","organizations_url":"https://api.github.com/users/Reifier/orgs","repos_url":"https://api.github.com/users/Reifier/repos","events_url":"https://api.github.com/users/Reifier/events{/privacy}","received_events_url":"https://api.github.com/users/Reifier/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T06:48:36Z","updated_at":"2018-07-03T06:48:36Z","author_association":"NONE","body":"I prefer the term Avant-Garde : )\r\n\r\n\r\nThanks for the link."}}
{"actor":{"display_login":"Reifier"}}