Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip cloning registry when loaded from cache #19

Open
omus opened this issue Jun 13, 2023 · 0 comments
Open

Skip cloning registry when loaded from cache #19

omus opened this issue Jun 13, 2023 · 0 comments

Comments

@omus
Copy link
Contributor

omus commented Jun 13, 2023

When the registry input is defined we always clone that registry even if the registry is already present:

await exec.exec(`git clone git@github.com:${registry}.git ${tmpdir}`);
const meta = toml.parse(fs.readFileSync(path.join(tmpdir, "Registry.toml")));
const name = meta.name || registry.split("/")[1];
const depot = process.env.JULIA_DEPOT_PATH || path.join(home, ".julia");
const dest = path.join(depot, "registries", name);
if (fs.existsSync(dest)) {
tmpdirCleanup();
} else {
fs.moveSync(tmpdir, dest);
}

It would be nice to avoid this unnecessary clone when using cached registries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant