`resolved` is supposed to be a path.