{"action":"created","issue":{"url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/466","labels_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/466/comments","events_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/466/events","html_url":"https://github.com/cyberdelia/django-pipeline/issues/466","id":88998292,"number":466,"title":"Don't check to see if a source file exists","user":{"login":"ryanmcgrath","id":22712,"avatar_url":"https://avatars.githubusercontent.com/u/22712?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanmcgrath","html_url":"https://github.com/ryanmcgrath","followers_url":"https://api.github.com/users/ryanmcgrath/followers","following_url":"https://api.github.com/users/ryanmcgrath/following{/other_user}","gists_url":"https://api.github.com/users/ryanmcgrath/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanmcgrath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanmcgrath/subscriptions","organizations_url":"https://api.github.com/users/ryanmcgrath/orgs","repos_url":"https://api.github.com/users/ryanmcgrath/repos","events_url":"https://api.github.com/users/ryanmcgrath/events{/privacy}","received_events_url":"https://api.github.com/users/ryanmcgrath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T12:03:55Z","updated_at":"2015-06-21T20:39:27Z","closed_at":null,"body":"Hi there,\r\n\r\nI've got a lot of love for this project, but one incredibly confusing thing is the following: why does Pipeline need to confirm a file exists? Just let any compilation/etc error out naturally; by checking for the existence of files before (packager.py:lines ~26-30) you make it so certain things won't get pulled in some scenarios.\r\n\r\ne.g, I don't want to have to run `collectstatic` every time I wanna reflect a change. With what Packager currently does, it checks to see if the file exists inside the static root, but in development it _should_ be checking all the relevant static paths. This incredibly basic not ideal patch to Packager shows what I'm talking about:\r\n\r\n``` python\r\nclass Package(object):\r\n    def __init__(self, config):\r\n        self.config = config\r\n        self._sources = []\r\n\r\n    @property\r\n    def sources(self):\r\n        if not self._sources:\r\n            paths = []\r\n            for pattern in self.config.get('source_filenames', []):\r\n                paths.append(pattern)  # Don't bother checking for existence\r\n                #for path in glob(pattern):\r\n                #    if path not in paths and find(path):\r\n                #        paths.append(str(path))\r\n            self._sources = paths\r\n        return self._sources\r\n```\r\n\r\nThis makes Pipeline just load things in development with no issues at all. There's likely a better patch for it but I've not got the time to dig into it, just wanted to leave a note for anyone else confused by it."},"comment":{"url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/comments/113955549","html_url":"https://github.com/cyberdelia/django-pipeline/issues/466#issuecomment-113955549","issue_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/466","id":113955549,"user":{"login":"cyberdelia","id":44535,"avatar_url":"https://avatars.githubusercontent.com/u/44535?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberdelia","html_url":"https://github.com/cyberdelia","followers_url":"https://api.github.com/users/cyberdelia/followers","following_url":"https://api.github.com/users/cyberdelia/following{/other_user}","gists_url":"https://api.github.com/users/cyberdelia/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberdelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberdelia/subscriptions","organizations_url":"https://api.github.com/users/cyberdelia/orgs","repos_url":"https://api.github.com/users/cyberdelia/repos","events_url":"https://api.github.com/users/cyberdelia/events{/privacy}","received_events_url":"https://api.github.com/users/cyberdelia/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T20:39:27Z","updated_at":"2015-06-21T20:39:27Z","body":"I'm not sure that this would work for prefixed staticfiles configuration.\r\nAre you using the most recent version of pipeline? Development compilation has been reduce in recents versions."}}