Deno: Is there a way to access past version of updated dependencies?

Created on 31 Jan 2020  路  6Comments  路  Source: denoland/deno

So if I want to update my dependency's source, but it breaks my program, is there anyway to retrieve the old code? Because if the dependency is hosted somewhere with no version control, I can't access the file anymore.

Maybe a system for saving X old versions of a dependency would be cool?

Most helpful comment

Maybe a system for saving X old versions of a dependency would be cool?

I'm open to it, but it's a complex problem. If someone built a tool outside of the deno repo which did this and it proved to be useful to people we could integrate it. It isn't a priority right now.

All 6 comments

Maybe a system for saving X old versions of a dependency would be cool?

I'm open to it, but it's a complex problem. If someone built a tool outside of the deno repo which did this and it proved to be useful to people we could integrate it. It isn't a priority right now.

I might try to make that happen, I'll come back with something soon.

Hey @ry (or anyone who can help), can you just point me to the relevant code? Like where you guys cache the dependencies, and maybe also when you compile them.

First time contributing to OS and this codebase is completely new to me also! Thanks.

@filipesmedeiros Related code should be in cli/file_fetcher.rs. You'll notice a bunch of mentions about cache there.

Is this something that's still of interest or can we close it?

I think we can close this, thanks @filipesmedeiros

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsonk picture kitsonk  路  3Comments

ry picture ry  路  3Comments

ry picture ry  路  3Comments

metakeule picture metakeule  路  3Comments

benjamingr picture benjamingr  路  3Comments