-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: save distribution method and prompt for update (#426)
* feat: save distribution channel and prompt for update * test: fix snapshot tests * fix: PR reviews * fix: security issue * test: fixing test snapshots * chore: updating the builds * chore: tweaks * chore: refactor version prompt logic * fix: PR reviews * test: adding test for each scenario * fix: PR reviews * fix: simplify pyinstaller add files-PR reviews * fix: pyinstaller command for adding file --------- Co-authored-by: Neil Campbell <neil.campbell@makerx.com.au>
- Loading branch information
1 parent
643ab01
commit baa0f9f
Showing
8 changed files
with
78 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../test_version_check.test_version_check_queries_github_when_cache_out_of_date.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
DEBUG: 1234.56.78 found in cache {app_state}/last-version-check | ||
DEBUG: HTTP Request: GET https://api.github.com/repos/algorandfoundation/algokit-cli/releases/latest "HTTP/1.1 200 OK" | ||
DEBUG: Latest version tag: v{new_version} | ||
You are using AlgoKit version {current_version}, however version {new_version} is available. | ||
You are using AlgoKit version {current_version}, however version {new_version} is available. Please update using the tool used to install AlgoKit. | ||
DEBUG: Attempting to load project config from {current_working_directory}/.algokit.toml | ||
DEBUG: No .algokit.toml file found in the project directory. |
2 changes: 1 addition & 1 deletion
2
...ion_check/test_version_check.test_version_check_queries_github_when_no_cache.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
DEBUG: {app_state}/last-version-check inaccessible | ||
DEBUG: HTTP Request: GET https://api.github.com/repos/algorandfoundation/algokit-cli/releases/latest "HTTP/1.1 200 OK" | ||
DEBUG: Latest version tag: v{new_version} | ||
You are using AlgoKit version {current_version}, however version {new_version} is available. | ||
You are using AlgoKit version {current_version}, however version {new_version} is available. Please update using the tool used to install AlgoKit. | ||
DEBUG: Attempting to load project config from {current_working_directory}/.algokit.toml | ||
DEBUG: No .algokit.toml file found in the project directory. |
2 changes: 1 addition & 1 deletion
2
tests/version_check/test_version_check.test_version_check_uses_cache.approved.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
DEBUG: 1234.56.78 found in cache {app_state}/last-version-check | ||
You are using AlgoKit version {current_version}, however version 1234.56.78 is available. | ||
You are using AlgoKit version {current_version}, however version 1234.56.78 is available. Please update using the tool used to install AlgoKit. | ||
DEBUG: Attempting to load project config from {current_working_directory}/.algokit.toml | ||
DEBUG: No .algokit.toml file found in the project directory. |
baa0f9f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report