esy icon indicating copy to clipboard operation
esy copied to clipboard

Stale resolutions: Changing files in a path-based resolution has no effect

Open timbertson opened this issue 5 years ago • 0 comments

esy version: 0.6.7 Operating System: fedora 32

Issue: when I change the contents of a local path being used as a resolutions override, it has no effect.

Package.json

https://github.com/onivim/oni2/blob/master/package.json

With the additional resolutions entry: "esy-skia": "/home/tim/dev/scratch/esy-skia"

(this is a local checkout, with some extra print statements to try and debug a build failure)

Actual behavior: After changing some contents of /home/tim/dev/scratch/esy-skia and running esy install, esy build, it doesn't update the actual source being built (i.e. my changes don't have any effect).

If I make a symlink, like ln -s esy-skia esy-skia3 and update the resolution accordingly, it uses the new directory contents. So I'm assuming some cache key somewhere is based on the path, and never checking the contents again after the first use.

I also tried various workarounds to treat it as a git repo (git+file:///) or simply appending #COMMIT, but none of those were accepted as valid specs. I'd be fine to commit and update the SHA, it's easier to track than making a new symlink every time.

Expected behavior:

Esy install (or esy build) should pick up new contents of a local path. Alternatively, there should be some command / argument to enable this.

timbertson avatar Nov 14 '20 08:11 timbertson