whyrusleeping / gx

A package management tool
MIT License
1.88k stars 110 forks source link

Possible install race #175

Open djdv opened 6 years ago

djdv commented 6 years ago

I'm getting inconsistent behaviour when installing packages with gx, failing out sometimes due to "Access is denied" errors. Investigating this showed that gx is getting this error when trying to move the package from its temporary stage to the final install path. It may be trying to do this before the package is finished downloading or still has open handles. Enabling Go's race detector caused it to fire when this error occurs. log 1 verbose log 2

The shell.Get(): symlink errors should be unrelated as this happens in packages without symlinks as well, but I will try and amend those first and check back with this.