metatypedev / ghjk

ghjk is a programmable runtime manager and an attempt at a successor for asdf.
Mozilla Public License 2.0
7 stars 0 forks source link

Detect alterations efficiently #53

Open zifeo opened 4 months ago

zifeo commented 4 months ago
export { ghjk } from "../../mod.ts";
import { install } from "../../mod.ts";
import * as ports from "../../ports/mod.ts";

install(
  ports.asdf({
    pluginRepo: "https://github.com/asdf-community/asdf-cmake",
    installType: "version",
  }),
);

And that the cmake binary somehow gets removed, the shell will fallback on a previous (if any) of the cmake binary silently without warning the users. If this is too costly, then let's make sure the sync ports command does it.

linear[bot] commented 4 months ago

MET-483 Detect alterations efficiently

Yohe-Am commented 4 months ago

A solution I've been thinking about regarding this problem is to check if all of the "shimlinks" still point to valid files inside the loader. We could complain if any of the symlinks are dead or maybe even auto-trigger re-downloads.

This would mean having to check if symlink validity on each cd into the dir. Possibly for scores and scores of files. Intuition tells me it shouldn't be a perf issue but we'll see.