{"action":"created","issue":{"url":"https://api.github.com/repos/substack/module-deps/issues/94","labels_url":"https://api.github.com/repos/substack/module-deps/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/substack/module-deps/issues/94/comments","events_url":"https://api.github.com/repos/substack/module-deps/issues/94/events","html_url":"https://github.com/substack/module-deps/pull/94","id":96814781,"number":94,"title":"Allow caching file content without caching deps (useful for build system interoperability).","user":{"login":"ohjames","id":97685,"avatar_url":"https://avatars.githubusercontent.com/u/97685?v=3","gravatar_id":"","url":"https://api.github.com/users/ohjames","html_url":"https://github.com/ohjames","followers_url":"https://api.github.com/users/ohjames/followers","following_url":"https://api.github.com/users/ohjames/following{/other_user}","gists_url":"https://api.github.com/users/ohjames/gists{/gist_id}","starred_url":"https://api.github.com/users/ohjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohjames/subscriptions","organizations_url":"https://api.github.com/users/ohjames/orgs","repos_url":"https://api.github.com/users/ohjames/repos","events_url":"https://api.github.com/users/ohjames/events{/privacy}","received_events_url":"https://api.github.com/users/ohjames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-07-23T13:30:12Z","updated_at":"2015-07-26T23:31:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/substack/module-deps/pulls/94","html_url":"https://github.com/substack/module-deps/pull/94","diff_url":"https://github.com/substack/module-deps/pull/94.diff","patch_url":"https://github.com/substack/module-deps/pull/94.patch"},"body":"With this change I can add a cache entry for source file content without being forced to cache the deps.\r\n\r\nIf my build system already has all of the file data in memory (indeed using a streaming build system the data may not even exist on the filesystem) then it would be nice if module-deps could be told about this data so it doesn't have to read it from the filesystem.\r\n\r\nYou can do this by adding a `cache` entry, however cache entries must also contain the `deps`, the build system only has the source content not the deps. With this 10 character change the best of both worlds can be had."},"comment":{"url":"https://api.github.com/repos/substack/module-deps/issues/comments/125048034","html_url":"https://github.com/substack/module-deps/pull/94#issuecomment-125048034","issue_url":"https://api.github.com/repos/substack/module-deps/issues/94","id":125048034,"user":{"login":"ohjames","id":97685,"avatar_url":"https://avatars.githubusercontent.com/u/97685?v=3","gravatar_id":"","url":"https://api.github.com/users/ohjames","html_url":"https://github.com/ohjames","followers_url":"https://api.github.com/users/ohjames/followers","following_url":"https://api.github.com/users/ohjames/following{/other_user}","gists_url":"https://api.github.com/users/ohjames/gists{/gist_id}","starred_url":"https://api.github.com/users/ohjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohjames/subscriptions","organizations_url":"https://api.github.com/users/ohjames/orgs","repos_url":"https://api.github.com/users/ohjames/repos","events_url":"https://api.github.com/users/ohjames/events{/privacy}","received_events_url":"https://api.github.com/users/ohjames/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T23:31:21Z","updated_at":"2015-07-26T23:31:21Z","body":"Thanks for taking the time to explain it, I see, that makes it sound like my change makes the single `cache` data structure a dual mode thing, changing it's meaning depending on whether the second `deps` exists or not. That seems like some really overly-complicated code.\r\n\r\nI think a better solution is needed than this then I guess."}}