refactor duo#resolve to have signature resolve(dep, file, entry)