Arnaud Aliès

Results 9 comments of Arnaud Aliès

I m trying to test a database access object, different tests are running on the same database. Two different tests are not supposed to run at the same time (for...

Hello! You are right. When you are on windows calling `Cleanup()` by yourself is not going to work because the temporary file you are trying to delete is your own...

I checked how other updaters are doing this self replacement part. Most of the time they just rename the executable and keep it in the same directory. (just like us)....

Yes it could be a great addition, I will look into that! Thank you for your feedback!

Yes I guess that would work If you would like to add a provider you just have to respect the following interface: ``` type Provider interface { Open() error Close()...

Thank you for the suggestion! Yes I think it could be a good idea! Today what you can do is call the provider by yourself to get the version (and...

Not exactly running it twice, just running the provider to get the latest version, then setup the updater with this information. But indeed `GetLatestVersion` will be called a second time...

Here is a workaround for now. Example with [ticker](https://github.com/achannarasappa/ticker): ``` func selfUpdate() (updater.UpdateStatus, error) { provider := &provider.Github{ RepositoryURL: "github.com/achannarasappa/ticker", } latestVersion, err := provider.GetLatestVersion() if err != nil {...

I think I will try to find some time this or next month to implement that. except if you fell like making a PR :) I think it could be...