Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

get_fly method should automatically download same version as server #2

Open
vinaykonanki opened this issue May 22, 2019 · 0 comments · May be fixed by #3
Open

get_fly method should automatically download same version as server #2

vinaykonanki opened this issue May 22, 2019 · 0 comments · May be fixed by #3

Comments

@vinaykonanki
Copy link

Right now, in fly.py (get_fly) we are just checking if the fly binary exists in DEFAULT_FLY_BIN, but apparently, we are not checking if the version of the fly CLI is the same as the server.

When we upgrade the server to the latest version, all of a sudden our client program fails (It throws warning that fly is out of sync). We should enhance the get_fly method by not just checking if the fly binary exists but also if it is same as server, if not we need to run the "fly sync" command.

Error: WARNING:

fly version (5.0.1) is out of sync with the target (5.2.0). to sync up, run the following:

    fly -t default sync   
s-block pushed a commit that referenced this issue Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant