{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/1357","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/1357/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/1357/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/1357/events","html_url":"https://github.com/dart-lang/pub/issues/1357","id":116261502,"number":1357,"title":"Fastest way to check if we need to run `pub get` ?","user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-11T04:19:49Z","updated_at":"2015-11-11T06:13:44Z","closed_at":null,"body":"From our customer: \"if i want to tell programmatically whether i need to run pub get, do i just compare pubspec.yaml to pubspec.lock and run pub get if the lock file is older?\"\r\n\r\nThanks for your insight here!"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/155679195","html_url":"https://github.com/dart-lang/pub/issues/1357#issuecomment-155679195","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/1357","id":155679195,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T06:13:44Z","updated_at":"2015-11-11T06:13:44Z","body":"This might result in false positives. To be sure you would need to check if the versions in pubspec.lock still fulfill all constraints in pubspec.yaml and if all dependencies in pubspec.yaml are listed in pubspec.lock. Probably also if the package name didn't change. \r\npubspec.yaml changes could be only spaces or transformer config,... which wouldn't require to rerun pub get. "}}